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:
Stefan Eissing 2026-03-11 15:25:45 +01:00 committed by Daniel Stenberg
parent 015f1c7de4
commit da7bfb89a1
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
21 changed files with 37 additions and 70 deletions

View file

@ -1276,7 +1276,7 @@ const struct Curl_protocol Curl_protocol_ldap = {
oldap_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 */
};