mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
add EISCONN handling to client connect attempt
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
24f4eb648b
commit
6811457323
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ struct libwebsocket *__libwebsocket_client_connect_2(
|
|||
bzero(&server_addr.sin_zero, 8);
|
||||
|
||||
if (connect(wsi->sock, (struct sockaddr *)&server_addr,
|
||||
sizeof(struct sockaddr)) == -1) {
|
||||
sizeof(struct sockaddr)) == -1 || errno == EISCONN) {
|
||||
|
||||
if (errno == EALREADY || errno == EINPROGRESS) {
|
||||
lwsl_client("nonblocking connect retry\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue