projects
/
libevent
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e9325e
)
Update bench_httpclient.c
author
Seungmo Koo
<spacesun@naver.com>
Sun, 7 Jun 2015 06:51:15 +0000
(15:51 +0900)
committer
Seungmo Koo
<spacesun@naver.com>
Sun, 7 Jun 2015 06:51:15 +0000
(15:51 +0900)
*fixed: socket_geterror instead of WSAGetLastError
test/bench_httpclient.c
patch
|
blob
|
history
diff --git
a/test/bench_httpclient.c
b/test/bench_httpclient.c
index 8700754fd303dc753c9e284a3686b270f0f8e14d..bcddc95f43809ab6dc82b70570758e1f3b8cd96e 100644
(file)
--- a/
test/bench_httpclient.c
+++ b/
test/bench_httpclient.c
@@
-151,10
+151,7
@@
launch_request(void)
}
frob_socket(sock);
if (connect(sock, (struct sockaddr*)&sin, sizeof(sin)) < 0) {
- int e = errno;
-#ifdef _WIN32
- e = WSAGetLastError();
-#endif
+ int e = evutil_socket_geterror(sock);
if (! EVUTIL_ERR_CONNECT_RETRIABLE(e)) {
evutil_closesocket(sock);
return -1;