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:
aef3131
)
properly disconnect failed connections
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 23 Sep 2002 12:44:45 +0000
(12:44 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 23 Sep 2002 12:44:45 +0000
(12:44 +0000)
lib/multi.c
patch
|
blob
|
history
diff --git
a/lib/multi.c
b/lib/multi.c
index
21ed99c
..
f97345a
100644
(file)
--- a/
lib/multi.c
+++ b/
lib/multi.c
@@
-339,9
+339,12
@@
CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
if(connected)
easy->result = Curl_protocol_connect(easy->easy_conn, NULL);
- if(CURLE_OK != easy->result)
+ if(CURLE_OK != easy->result)
{
/* failure detected */
+ Curl_disconnect(easy->easy_conn); /* close the connection */
+ easy->easy_conn = NULL; /* no more connection */
break;
+ }
if(connected) {
/* after the connect has completed, go DO */