{
uh_chunk_eof(cl);
uh_dispatch_done(cl);
- cl->us->notify_write = NULL;
memset(&cl->dispatch, 0, sizeof(cl->dispatch));
if (!conf.http_keepalive || cl->request.connection_close)
if (!newline)
return false;
- if (newline == buf)
+ if (newline == buf) {
+ ustream_consume(cl->us, 2);
return true;
+ }
*newline = 0;
blob_buf_init(&cl->hdr, 0);
next_client = NULL;
n_clients++;
cl->id = client_id++;
+ cl->tls = tls;
return true;
}