mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:03:39 +03:00
Based on a patch by Armel Asselin, the FTP code no longer re-issues the TYPE
command on subsequent requests on a re-used connection unless it has to.
This commit is contained in:
parent
74a6921bc4
commit
cfdcae4bc7
23 changed files with 139 additions and 99 deletions
|
|
@ -940,7 +940,7 @@ void telrcv(struct connectdata *conn,
|
|||
break; /* Ignore \0 after CR */
|
||||
}
|
||||
|
||||
Curl_client_write(data, CLIENTWRITE_BODY, (char *)&c, 1);
|
||||
Curl_client_write(conn, CLIENTWRITE_BODY, (char *)&c, 1);
|
||||
continue;
|
||||
|
||||
case CURL_TS_DATA:
|
||||
|
|
@ -954,7 +954,7 @@ void telrcv(struct connectdata *conn,
|
|||
tn->telrcv_state = CURL_TS_CR;
|
||||
}
|
||||
|
||||
Curl_client_write(data, CLIENTWRITE_BODY, (char *)&c, 1);
|
||||
Curl_client_write(conn, CLIENTWRITE_BODY, (char *)&c, 1);
|
||||
continue;
|
||||
|
||||
case CURL_TS_IAC:
|
||||
|
|
@ -978,7 +978,7 @@ void telrcv(struct connectdata *conn,
|
|||
tn->telrcv_state = CURL_TS_SB;
|
||||
continue;
|
||||
case CURL_IAC:
|
||||
Curl_client_write(data, CLIENTWRITE_BODY, (char *)&c, 1);
|
||||
Curl_client_write(conn, CLIENTWRITE_BODY, (char *)&c, 1);
|
||||
break;
|
||||
case CURL_DM:
|
||||
case CURL_NOP:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue