From fdbd31bbb3e61cc42c2d12371975b892934dd51c Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 28 Nov 2026 21:21:55 +0100 Subject: short writes reset the fd to OT_CLIENT_TIMEOUT_SEND. It was set to 'forever' before --- src/ot_http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ot_http.c') diff --git a/src/ot_http.c b/src/ot_http.c index 4bd5431..2e21546 100644 --- a/src/ot_http.c +++ b/src/ot_http.c @@ -141,9 +141,9 @@ static void http_senddata(const int64_t sock, struct ot_workstruct *ws) { batch_add(cookie->batch, outbuf, ws->reply_size - written_size); - /* writeable short data sockets just have a tcp timeout */ + /* Reset any connections potentially near their timeout */ if (!ws->keep_alive) - fdstate_set_expiry(sock, 0); + fdstate_set_expiry(sock, time_future_seconds(OT_CLIENT_TIMEOUT_SEND)); http_interest_set(sock, cookie, EVENT_OUT); } } -- cgit v1.3