Skip to content
Snippets Groups Projects
Commit c21f848c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

enable persistant connections by default

parent 84e94fda
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment