Browse Source

[mod_fastcgi] transfer chunks minus packet padding

(thx avij)
personal/stbuehler/fix-fdevent
Glenn Strauss 3 years ago
parent
commit
19b5fbdd3d
  1. 3
      src/mod_fastcgi.c

3
src/mod_fastcgi.c

@ -407,11 +407,12 @@ static handler_t fcgi_recv_parse(server *srv, connection *con, struct http_respo
hctx->send_content_body = 0;
}
} else if (hctx->send_content_body) {
if (0 != http_chunk_transfer_cqlen(srv, con, hctx->rb, packet.len)) {
if (0 != http_chunk_transfer_cqlen(srv, con, hctx->rb, packet.len - packet.padding)) {
/* error writing to tempfile;
* truncate response or send 500 if nothing sent yet */
fin = 1;
}
if (packet.padding) chunkqueue_mark_written(hctx->rb, packet.padding);
} else {
chunkqueue_mark_written(hctx->rb, packet.len);
}

Loading…
Cancel
Save