From 82245eaa56c368f6b6b9abf4de63e7d6fb786f71 Mon Sep 17 00:00:00 2001 From: Isaac Boukris Date: Wed, 7 Dec 2016 00:39:08 +0200 Subject: Curl_getconnectinfo: avoid checking if the connection is closed It doesn't benefit us much as the connection could get closed at any time, and also by checking we lose the ability to determine if the socket was closed by reading zero bytes. Reported-by: Michael Kaufmann Closes https://github.com/curl/curl/pull/1134 --- lib/connect.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/connect.h') diff --git a/lib/connect.h b/lib/connect.h index 5e48eb644..e01d1b35e 100644 --- a/lib/connect.h +++ b/lib/connect.h @@ -52,6 +52,11 @@ time_t Curl_timeleft(struct Curl_easy *data, curl_socket_t Curl_getconnectinfo(struct Curl_easy *data, struct connectdata **connp); +/* + * Check if a connection seems to be alive. + */ +bool Curl_connalive(struct connectdata *conn); + #ifdef USE_WINSOCK /* When you run a program that uses the Windows Sockets API, you may experience slow performance when you copy data to a TCP server. -- cgit v1.2.1