BUG/MEDIUM: lua: block on remote connection establishment
We used to wait for the other side to be connected, but the blocking flags were inaccurate. It used to work fine almost by accident before the stream interface changes. Now we use the new RXBLK_CONN flag to explicitly subscribe to this event. Thanks to Adis for reporting the issue, PiBaNL for the test case, and Olivier for the diagnostic. No backport is needed.
This commit is contained in:
parent
adc7f3edd2
commit
12c24235ca
@ -1616,6 +1616,7 @@ static void hlua_socket_handler(struct appctx *appctx)
|
||||
*/
|
||||
if (!(c->flags & CO_FL_CONNECTED)) {
|
||||
si_cant_get(si);
|
||||
si_rx_conn_blk(si);
|
||||
si_rx_endp_more(si);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user