Skip to content

Commit cde1769

Browse files
liuyacanflorincoras
authored andcommitted
vcl: fix vcl_session_write_ready when connecting
Applications like curl will poll the fd after a non-blocking connect, so we need to avoid returning the wrong event. Type: fix Signed-off-by: liuyacan <[email protected]> Change-Id: I7ea146fc954fda631b3d88b46bb80adfbcdf137c
1 parent 5a9d2a1 commit cde1769

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vcl/vcl_private.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ vcl_session_write_ready (vcl_session_t * s)
317317
else
318318
return VPPCOM_EBADFD;
319319
}
320+
else if (s->session_state == VCL_STATE_UPDATED)
321+
{
322+
return 0;
323+
}
320324
else
321325
{
322326
return (s->session_state == VCL_STATE_DISCONNECT) ?

0 commit comments

Comments
 (0)