1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-15 15:43:24 +00:00

Socat printed the "socket ... is at EOF" message multiple times

This commit is contained in:
Gerhard Rieger 2019-12-30 10:05:33 +01:00
parent 3be18bdc1f
commit 12f7833a8f
4 changed files with 49 additions and 5 deletions

3
xio.h
View file

@ -129,7 +129,8 @@ typedef struct single {
bool ignoreeof; /* option ignoreeof; do not pass eof condition to app*/
int eof; /* 1..exec'd child has died, but no explicit eof
occurred
2..fd0 has reached EOF (definitely; never with
2..fd0 has reached EOF, but check for ignoreeof
3..fd0 has reached EOF (definitely; never with
ignoreeof! */
size_t wsize; /* write always this size; 0..all available */
size_t readbytes; /* read only so many bytes; 0...unlimited */