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

Corrected regression of ignoreeof

This commit is contained in:
Gerhard Rieger 2025-01-29 21:55:18 +01:00
parent 9968ca4c5b
commit fa67d7d380
3 changed files with 71 additions and 23 deletions

View file

@ -1013,7 +1013,7 @@ int _socat(void) {
/* for ignoreeof */
if (polling) {
if (!wasaction) {
if (socat_opts.total_timeout.tv_usec <= 1000000) {
if (socat_opts.total_timeout.tv_usec < 1000000) {
if (total_timeout.tv_usec < socat_opts.pollintv.tv_usec) {
total_timeout.tv_usec += 1000000;
total_timeout.tv_sec -= 1;