projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbdd1cb
)
avoid redundant work when reusing same connection
author
Yang Tse
<yangsita@gmail.com>
Tue, 8 Jun 2010 17:29:20 +0000
(19:29 +0200)
committer
Yang Tse
<yangsita@gmail.com>
Tue, 8 Jun 2010 17:29:20 +0000
(19:29 +0200)
lib/connect.c
patch
|
blob
|
history
diff --git
a/lib/connect.c
b/lib/connect.c
index 3ca6aa3ce116ffc7aeaf991c41ff1a93a04d2a3f..f917ed59586f8dac79a04a52929b92ea0baffe98 100644
(file)
--- a/
lib/connect.c
+++ b/
lib/connect.c
@@
-570,6
+570,10
@@
void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd)
struct SessionHandle *data = conn->data;
struct PureInfo *info = &conn->data->info;
+ if(conn->bits.reuse)
+ /* reusing same connection */
+ return;
+
len = sizeof(struct Curl_sockaddr_storage);
if(getpeername(sockfd, (struct sockaddr*) &ssrem, &len)) {
error = SOCKERRNO;