mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
Print a message when readbytes option causes EOF
This commit is contained in:
parent
39e24c2b06
commit
bc32acb5fe
2 changed files with 3 additions and 0 deletions
2
CHANGES
2
CHANGES
|
@ -48,6 +48,8 @@ Corrections:
|
||||||
The call "socat -r - PIPE" traced to file ./- instead of issuing a
|
The call "socat -r - PIPE" traced to file ./- instead of issuing a
|
||||||
syntax error.
|
syntax error.
|
||||||
|
|
||||||
|
Print a message when readbytes option causes EOF
|
||||||
|
|
||||||
Testing:
|
Testing:
|
||||||
Prevent the TIMESTAMP tests from sporadically failing due do seconds
|
Prevent the TIMESTAMP tests from sporadically failing due do seconds
|
||||||
overflow
|
overflow
|
||||||
|
|
|
@ -42,6 +42,7 @@ ssize_t xioread(xiofile_t *file, void *buff, size_t bufsiz) {
|
||||||
|
|
||||||
if (pipe->readbytes) {
|
if (pipe->readbytes) {
|
||||||
if (pipe->actbytes == 0) {
|
if (pipe->actbytes == 0) {
|
||||||
|
Info("xioread(): readbytes consumed, inserting EOF");
|
||||||
return 0; /* EOF by count */
|
return 0; /* EOF by count */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue