mirror of
https://github.com/curl/curl.git
synced 2026-08-26 10:13:31 +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
|
|
@ -196,6 +196,7 @@ static const struct Curl_handler Curl_handler_http2 = {
|
|||
http2_perform_getsock, /* perform_getsock */
|
||||
http2_disconnect, /* disconnect */
|
||||
ZERO_NULL, /* readwrite */
|
||||
ZERO_NULL, /* connection_check */
|
||||
PORT_HTTP, /* defport */
|
||||
CURLPROTO_HTTP, /* protocol */
|
||||
PROTOPT_STREAM /* flags */
|
||||
|
|
@ -216,6 +217,7 @@ static const struct Curl_handler Curl_handler_http2_ssl = {
|
|||
http2_perform_getsock, /* perform_getsock */
|
||||
http2_disconnect, /* disconnect */
|
||||
ZERO_NULL, /* readwrite */
|
||||
ZERO_NULL, /* connection_check */
|
||||
PORT_HTTP, /* defport */
|
||||
CURLPROTO_HTTPS, /* protocol */
|
||||
PROTOPT_SSL | PROTOPT_STREAM /* flags */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue