aboutsummaryrefslogtreecommitdiff
path: root/src/util/connection.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-01-30 15:54:13 +0000
committerChristian Grothoff <christian@grothoff.org>2013-01-30 15:54:13 +0000
commit59943eb54a55aa6ddd0921eb81bc325d55bcae72 (patch)
tree4477f33a5d8c53cac88dde8c440945c322e34f13 /src/util/connection.c
parentff3529ccfc3f7df86531900b40dd37dc0617387b (diff)
downloadgnunet-59943eb54a55aa6ddd0921eb81bc325d55bcae72.tar.gz
gnunet-59943eb54a55aa6ddd0921eb81bc325d55bcae72.zip
-check for EINPROGRESS for UNIX, hopefully fixing #2741
Diffstat (limited to 'src/util/connection.c')
-rw-r--r--src/util/connection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/connection.c b/src/util/connection.c
index d7ae12fb3..c4795cebe 100644
--- a/src/util/connection.c
+++ b/src/util/connection.c
@@ -864,8 +864,9 @@ GNUNET_CONNECTION_create_from_connect_to_unixpath (const struct
864 GNUNET_free (connection); 864 GNUNET_free (connection);
865 return NULL; 865 return NULL;
866 } 866 }
867 if (GNUNET_OK != 867 if ( (GNUNET_OK !=
868 GNUNET_NETWORK_socket_connect (connection->sock, connection->addr, connection->addrlen)) 868 GNUNET_NETWORK_socket_connect (connection->sock, connection->addr, connection->addrlen)) &&
869 (EINPROGRESS != errno) )
869 { 870 {
870 /* Just return; we expect everything to work eventually so don't fail HARD */ 871 /* Just return; we expect everything to work eventually so don't fail HARD */
871 GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (connection->sock)); 872 GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (connection->sock));