mirror of
https://repo.or.cz/socat.git
synced 2025-07-12 14:43:24 +00:00
writefull() respects total inactivity timeout
This commit is contained in:
parent
1878ae93fd
commit
1154e69d3e
12 changed files with 31 additions and 15 deletions
2
socat.c
2
socat.c
|
@ -282,6 +282,8 @@ int main(int argc, const char *argv[]) {
|
|||
socat_opts.total_timeout.tv_usec =
|
||||
(rto-socat_opts.total_timeout.tv_sec) * 1000000;
|
||||
}
|
||||
xioparms.total_timeout.tv_sec = socat_opts.total_timeout.tv_sec;
|
||||
xioparms.total_timeout.tv_usec = socat_opts.total_timeout.tv_usec;
|
||||
break;
|
||||
case 'u': if (arg1[0][2]) { socat_opt_hint(stderr, arg1[0][1], arg1[0][2]); Exit(1); }
|
||||
socat_opts.lefttoright = true; break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue