mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-10 17:32:03 -04:00
BUG/MINOR: mux-fcgi: Set conn state to RECORD_P when skipping the record padding
When the padding of a "stream" record (STDOUT or STDERR) is skipped, we must set the connection state to RECORD_P. It is especially important if the padding is not fully received. This patch must be backported as far as 2.1.
This commit is contained in:
parent
7f85433a91
commit
6c99d3baea
1 changed files with 2 additions and 0 deletions
|
|
@ -2295,6 +2295,7 @@ static int fcgi_strm_handle_stdout(struct fcgi_conn *fconn, struct fcgi_strm *fs
|
|||
goto fail;
|
||||
|
||||
end_transfer:
|
||||
fconn->state = FCGI_CS_RECORD_P;
|
||||
fconn->drl += fconn->drp;
|
||||
fconn->drp = 0;
|
||||
ret = MIN(b_data(&fconn->dbuf), fconn->drl);
|
||||
|
|
@ -2379,6 +2380,7 @@ static int fcgi_strm_handle_stderr(struct fcgi_conn *fconn, struct fcgi_strm *fs
|
|||
goto fail;
|
||||
|
||||
end_transfer:
|
||||
fconn->state = FCGI_CS_RECORD_P;
|
||||
fconn->drl += fconn->drp;
|
||||
fconn->drp = 0;
|
||||
ret = MIN(b_data(&fconn->dbuf), fconn->drl);
|
||||
|
|
|
|||
Loading…
Reference in a new issue