Add linger timeout

This commit is contained in:
Vladimir Dubrovin committed 2026-08-08 19:13:02 +03:00
1 parent eceb5a22df
commit a986ed7a07
4 files changed
+15 -7

No files matched your search

+3 -1
View File
@@ -780,7 +780,9 @@ log("ready reading from server pipe");
#ifdef WITHLOG
log("entering poll");
#endif
res = param->srv->so._poll(param->sostate, fds, fdsc, timeo*1000);
res = param->srv->so._poll(param->sostate, fds, fdsc,
((CLIENTTERMREAD || SERVERTERMREAD)?
MIN(timeo, conf.timeouts[LINGER_TO]) : timeo) * 1000);
#ifdef WITHLOG
log("leaving poll");
#endif