diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-28 21:21:55 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-28 21:21:55 +0100 |
| commit | fdbd31bbb3e61cc42c2d12371975b892934dd51c (patch) | |
| tree | a250d20f9281c481fee409eae58f7c2a79c62de7 /src | |
| parent | 0d51f4ce3826f78d23bfa48b2ac447f1fd91a0af (diff) | |
short writes reset the fd to OT_CLIENT_TIMEOUT_SEND. It was set to 'forever' before
Diffstat (limited to 'src')
| -rw-r--r-- | src/ot_http.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { | |||
| 141 | 141 | ||
| 142 | batch_add(cookie->batch, outbuf, ws->reply_size - written_size); | 142 | batch_add(cookie->batch, outbuf, ws->reply_size - written_size); |
| 143 | 143 | ||
| 144 | /* writeable short data sockets just have a tcp timeout */ | 144 | /* Reset any connections potentially near their timeout */ |
| 145 | if (!ws->keep_alive) | 145 | if (!ws->keep_alive) |
| 146 | fdstate_set_expiry(sock, 0); | 146 | fdstate_set_expiry(sock, time_future_seconds(OT_CLIENT_TIMEOUT_SEND)); |
| 147 | http_interest_set(sock, cookie, EVENT_OUT); | 147 | http_interest_set(sock, cookie, EVENT_OUT); |
| 148 | } | 148 | } |
| 149 | } | 149 | } |
