Don't hard-code the TLS connect timeout, use normal connect timeout.
For sudo_logsrvd, this is the relay connect_timeout setting. For sudoers, this is the log_server_timeout setting.
This commit is contained in:
@@ -1441,6 +1441,7 @@ client_closure_alloc(int sock, struct sudo_event_base *base,
|
||||
closure->tls_client.evbase = base;
|
||||
closure->tls_client.parent_closure = closure;
|
||||
closure->tls_client.peer_name = &server_info;
|
||||
closure->tls_client.connect_timeout.tv_sec = TLS_HANDSHAKE_TIMEO_SEC;
|
||||
closure->tls_client.start_fn = tls_start_fn;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user