diff options
| -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 | } |
