mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:33:33 +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
|
|
@ -119,6 +119,7 @@ const struct Curl_handler Curl_handler_http = {
|
|||
ZERO_NULL, /* perform_getsock */
|
||||
ZERO_NULL, /* disconnect */
|
||||
ZERO_NULL, /* readwrite */
|
||||
ZERO_NULL, /* connection_check */
|
||||
PORT_HTTP, /* defport */
|
||||
CURLPROTO_HTTP, /* protocol */
|
||||
PROTOPT_CREDSPERREQUEST /* flags */
|
||||
|
|
@ -143,6 +144,7 @@ const struct Curl_handler Curl_handler_https = {
|
|||
ZERO_NULL, /* perform_getsock */
|
||||
ZERO_NULL, /* disconnect */
|
||||
ZERO_NULL, /* readwrite */
|
||||
ZERO_NULL, /* connection_check */
|
||||
PORT_HTTPS, /* defport */
|
||||
CURLPROTO_HTTPS, /* protocol */
|
||||
PROTOPT_SSL | PROTOPT_CREDSPERREQUEST | PROTOPT_ALPN_NPN /* flags */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue