url: provide dead_connection flag in Curl_handler::disconnect
It helps to prevent a hangup with some FTP servers in case idle session timeout has exceeded. But it may be useful also for other protocols that send any quit message on disconnect. Currently used by FTP, POP3, IMAP and SMTP.
This commit is contained in:
@@ -117,7 +117,9 @@ CURLcode Curl_rtsp_connect(struct connectdata *conn, bool *done)
|
||||
return httpStatus;
|
||||
}
|
||||
|
||||
CURLcode Curl_rtsp_disconnect(struct connectdata *conn) {
|
||||
CURLcode Curl_rtsp_disconnect(struct connectdata *conn, bool dead_connection)
|
||||
{
|
||||
(void) dead_connection;
|
||||
Curl_safefree(conn->proto.rtspc.rtp_buf);
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user