vcl: fix vcl_session_write_ready when connecting 89/32889/2
authorliuyacan <liuyacan@corp.netease.com>
Thu, 24 Jun 2021 12:39:02 +0000 (20:39 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 24 Jun 2021 14:37:17 +0000 (14:37 +0000)
commitcde1769a839db5a732e000fb60822362b6c39e86
treee99a8cc65c8315612d2230be2a5d5748c13817e9
parent5a9d2a1758c69b0960e61b9052eb058679955990
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 <liuyacan@corp.netease.com>
Change-Id: I7ea146fc954fda631b3d88b46bb80adfbcdf137c
src/vcl/vcl_private.c