mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 13:04:17 +03:00
vere: send http completion even if no data
It's common now for the last http response to have no body and just mark the request as complete. http.c wasn't closing these connections because h20 was busy and when it indicated it was ready we only checked whether there was more data to send. This also checks whether the request has been marked complete, and if so finished the connection.
This commit is contained in:
parent
9f89c8b8bc
commit
cc5ac2a000
@ -479,7 +479,7 @@ _http_hgen_proceed(h2o_generator_t* neg_u, h2o_req_t* rec_u)
|
||||
_cttp_bods_free(gen_u->nud_u);
|
||||
gen_u->nud_u = 0;
|
||||
|
||||
if ( 0 != gen_u->bod_u ) {
|
||||
if ( 0 != gen_u->bod_u || c3y == gen_u->dun ) {
|
||||
_http_hgen_send(gen_u);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user