projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84e94fd
)
enable persistant connections by default
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 5 Mar 2001 13:40:08 +0000
(13:40 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 5 Mar 2001 13:40:08 +0000
(13:40 +0000)
lib/ftp.c
patch
|
blob
|
history
lib/http.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index 293a20e2caa50427939b57dcc5d1d3879f06b7b7..2a2e519c93d7e5787847b1430b198d6eb986745e 100644
(file)
--- a/
lib/ftp.c
+++ b/
lib/ftp.c
@@
-296,6
+296,9
@@
CURLcode Curl_ftp_connect(struct connectdata *conn)
memset(ftp, 0, sizeof(struct FTP));
conn->proto.ftp = ftp;
+ /* We always support persistant connections on ftp */
+ conn->bits.close = FALSE;
+
/* get some initial data into the ftp struct */
ftp->bytecountp = &conn->bytecount;
diff --git
a/lib/http.c
b/lib/http.c
index 589501450ee43246681f52491a258f79d4d4947b..71ef7aa35b188d6c8b53842328ab5fa9a60132e2 100644
(file)
--- a/
lib/http.c
+++ b/
lib/http.c
@@
-402,6
+402,9
@@
CURLcode Curl_http(struct connectdata *conn)
else
http = conn->proto.http;
+ /* We default to persistant connections */
+ conn->bits.close = FALSE;
+
if ( (conn->protocol&(PROT_HTTP|PROT_FTP)) &&
data->bits.upload) {
data->bits.http_put=1;