diff options
author | shys <shyswork@zoho.com> | 2013-10-25 15:49:11 +0200 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2013-10-25 22:28:28 +0800 |
commit | 5efcb3f7dec0d284aa89d5fc179de70d0405b52c (patch) | |
tree | 6fd618996cd5718c5a5e107f25d3dfa63af87240 /lib | |
parent | 6b5c1af4393413db0666becf41f60dbc810982a7 (diff) | |
download | libwebsockets-5efcb3f7dec0d284aa89d5fc179de70d0405b52c.tar.gz |
Subject: [PATCH] Additional check for EISONN. On iOS "if (connect()) == -1 ||
errno == EISCONN)" doesn't work.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/client-handshake.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/client-handshake.c b/lib/client-handshake.c index a241c90c..83d8f21d 100644 --- a/lib/client-handshake.c +++ b/lib/client-handshake.c @@ -93,8 +93,11 @@ struct libwebsocket *__libwebsocket_client_connect_2( return wsi; } - lwsl_debug("Connect failed errno=%d\n", errno); - goto failed; + if (errno != EISCONN) { + + lwsl_debug("Connect failed errno=%d\n", errno); + goto failed; + } } lwsl_client("connected\n"); |