From 9e06e4c254a730af14fee6697921bb414bc55cbd 2020-04-30 10:01:47 From: Christopher Esterhuyse Date: 2020-04-30 10:01:47 Subject: [PATCH] fixed connection returning false positives for active-bound ports in failure case on Windows --- diff --git a/examples/1_socketlike/bob.c b/examples/1_socketlike/bob.c index a66a1af4d89b0f1345a037df28e1932eeb2fd512..2577e85a689bd56d9dac01840795c998e1c369aa 100644 --- a/examples/1_socketlike/bob.c +++ b/examples/1_socketlike/bob.c @@ -20,7 +20,8 @@ int main() { check("bind 0 ", connector_bind_active(c, 0, "127.0.0.1:7000")); check("bind 1 ", connector_bind_native(c, 1)); printf("connecting...\n"); - check("connect", connector_connect(c, 5000)); + printf("connect err %d%n", connector_connect(c, 20000)); + printf("%s%n", connector_dump_log(c)); // receive a message and print it to stdout three times int i;