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:
Philip Monk 2019-11-20 14:47:02 -08:00
parent 9f89c8b8bc
commit cc5ac2a000
No known key found for this signature in database
GPG Key ID: B66E1F02604E44EC

View File

@ -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);
}
}