]> granicus.if.org Git - libevent/commitdiff
the win32 changes for regress_http broke the regression test under unix. making...
authorNiels Provos <provos@gmail.com>
Fri, 28 Dec 2007 07:58:29 +0000 (07:58 +0000)
committerNiels Provos <provos@gmail.com>
Fri, 28 Dec 2007 07:58:29 +0000 (07:58 +0000)
svn:r621

test/regress_http.c

index 4f3b955add2f46cb3872ab9773b9f0f92a5a209d..707dca3a66e8c272644303ef75969a31203627dc 100644 (file)
@@ -144,8 +144,10 @@ http_connect(const char *address, u_short port)
                event_err(1, "socket failed");
 
        evutil_make_socket_nonblocking(fd);
-       if (connect(fd, sa, slen) == -1)
-               event_err(1, "connect failed");
+       if (connect(fd, sa, slen) == -1) {
+               if (errno != EINPROGRESS)
+                       event_err(1, "connect failed");
+       }
 
 #ifndef WIN32
        freeaddrinfo(aitop);