mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:53:35 +03:00
handler: refactor connection checking
Add a new type of callback to Curl_handler which performs checks on the connection. Alter RTSP so that it uses this callback to do its own check on connection health.
This commit is contained in:
parent
192877058e
commit
c75f63d7c4
20 changed files with 78 additions and 7 deletions
|
|
@ -177,6 +177,7 @@ const struct Curl_handler Curl_handler_scp = {
|
|||
ssh_perform_getsock, /* perform_getsock */
|
||||
scp_disconnect, /* disconnect */
|
||||
ZERO_NULL, /* readwrite */
|
||||
ZERO_NULL, /* connection_check */
|
||||
PORT_SSH, /* defport */
|
||||
CURLPROTO_SCP, /* protocol */
|
||||
PROTOPT_DIRLOCK | PROTOPT_CLOSEACTION
|
||||
|
|
@ -203,6 +204,7 @@ const struct Curl_handler Curl_handler_sftp = {
|
|||
ssh_perform_getsock, /* perform_getsock */
|
||||
sftp_disconnect, /* disconnect */
|
||||
ZERO_NULL, /* readwrite */
|
||||
ZERO_NULL, /* connection_check */
|
||||
PORT_SSH, /* defport */
|
||||
CURLPROTO_SFTP, /* protocol */
|
||||
PROTOPT_DIRLOCK | PROTOPT_CLOSEACTION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue