Skip to content

Commit

Permalink
Merge branch 'master' of ssh://github.com/libevent/libevent
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Jun 28, 2012
2 parents e2d7d98 + ea92fba commit 108896a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/bench_httpclient.c
Expand Up @@ -140,12 +140,15 @@ launch_request(void)
sin.sin_port = htons(8080);
if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0)
return -1;
if (evutil_make_socket_nonblocking(sock) < 0)
if (evutil_make_socket_nonblocking(sock) < 0) {
evutil_closesocket(sock);
return -1;
}
frob_socket(sock);
if (connect(sock, (struct sockaddr*)&sin, sizeof(sin)) < 0) {
int e = errno;
if (! EVUTIL_ERR_CONNECT_RETRIABLE(e)) {
evutil_closesocket(sock);
return -1;
}
}
Expand Down

0 comments on commit 108896a

Please sign in to comment.