mirror of
https://github.com/curl/curl.git
synced 2026-08-14 09:13:37 +03:00
connection_check, simplified
The protocol handler method `connection_check` allowed to variable operations to trigger with variable result bits. Only the `CONNCHECK_ISDEAD` and `CONNRESULT_DEAD` were in use. Transform the function into `connection_is_dead` without extra parameter and a bool result. - Remove defines for `CONNCHECK_*` and `CONNRESULT_*` - Rename protocol function in handler comments - Change RTSP implementation (only protocol that uses this) Closes #20890
This commit is contained in:
parent
015f1c7de4
commit
da7bfb89a1
21 changed files with 37 additions and 70 deletions
|
|
@ -2985,7 +2985,7 @@ const struct Curl_protocol Curl_protocol_scp = {
|
|||
scp_disconnect, /* disconnect */
|
||||
ZERO_NULL, /* write_resp */
|
||||
ZERO_NULL, /* write_resp_hd */
|
||||
ZERO_NULL, /* connection_check */
|
||||
ZERO_NULL, /* connection_is_dead */
|
||||
ZERO_NULL, /* attach connection */
|
||||
ZERO_NULL, /* follow */
|
||||
};
|
||||
|
|
@ -3008,7 +3008,7 @@ const struct Curl_protocol Curl_protocol_sftp = {
|
|||
sftp_disconnect, /* disconnect */
|
||||
ZERO_NULL, /* write_resp */
|
||||
ZERO_NULL, /* write_resp_hd */
|
||||
ZERO_NULL, /* connection_check */
|
||||
ZERO_NULL, /* connection_is_dead */
|
||||
ZERO_NULL, /* attach connection */
|
||||
ZERO_NULL, /* follow */
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3835,7 +3835,7 @@ const struct Curl_protocol Curl_protocol_scp = {
|
|||
scp_disconnect, /* disconnect */
|
||||
ZERO_NULL, /* write_resp */
|
||||
ZERO_NULL, /* write_resp_hd */
|
||||
ZERO_NULL, /* connection_check */
|
||||
ZERO_NULL, /* connection_is_dead */
|
||||
ssh_attach, /* attach */
|
||||
ZERO_NULL, /* follow */
|
||||
};
|
||||
|
|
@ -3858,7 +3858,7 @@ const struct Curl_protocol Curl_protocol_sftp = {
|
|||
sftp_disconnect, /* disconnect */
|
||||
ZERO_NULL, /* write_resp */
|
||||
ZERO_NULL, /* write_resp_hd */
|
||||
ZERO_NULL, /* connection_check */
|
||||
ZERO_NULL, /* connection_is_dead */
|
||||
ssh_attach, /* attach */
|
||||
ZERO_NULL, /* follow */
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue