diff options
Diffstat (limited to 'src/ot_tcp.c')
| -rw-r--r-- | src/ot_tcp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ot_tcp.c b/src/ot_tcp.c index 1351b92..f93795b 100644 --- a/src/ot_tcp.c +++ b/src/ot_tcp.c | |||
| @@ -79,6 +79,11 @@ void tcp_read(const int64_t sock, struct ot_workstruct *ws) { | |||
| 79 | ws->request = cookie->request.data; | 79 | ws->request = cookie->request.data; |
| 80 | ws->request_size = (ssize_t)cookie->request.size; | 80 | ws->request_size = (ssize_t)cookie->request.size; |
| 81 | http_handle_request(sock, ws); | 81 | http_handle_request(sock, ws); |
| 82 | |||
| 83 | /* A worker owns the connection now, and the buffer this loop reads hangs | ||
| 84 | off it, so there is nothing here left to look at */ | ||
| 85 | if (ws->handed_off) | ||
| 86 | return; | ||
| 82 | #ifdef WANT_KEEPALIVE | 87 | #ifdef WANT_KEEPALIVE |
| 83 | if (!ws->keep_alive) | 88 | if (!ws->keep_alive) |
| 84 | #endif | 89 | #endif |
