From cc9397414a655cab4c47de6559e69ecda06530cc Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 26 May 2011 01:29:34 +0200 Subject: Revert SO_???TIMEO-based STARTTLS timeout handling. This reverts commits 47c05b10018f5ec7493e4bd9f521aaa18d96f1e2 and 72ce8bce8dd655b6aefa33d0a74e883dad5202b5, the code isn't portable, for instance, Solaris does not support SO_RCVTIMEO/SO_SNDTIMEO. These socket-level options are known, but Solaris returns EAFNOSUPPORT. Reported by Jonathan Buschmann. --- socket.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'socket.h') diff --git a/socket.h b/socket.h index cbdeec06..0c4ac001 100644 --- a/socket.h +++ b/socket.h @@ -20,9 +20,6 @@ struct addrinfo; /** Create a new client socket; returns -1 on error */ int SockOpen(const char *host, const char *service, const char *plugin, struct addrinfo **); -/** Sets the send/receive timeouts for socket \a sock to \a timeout - * seconds. \return zero on success. */ -int SockTimeout(int sock, int timeout); /** Get a string terminated by an '\n' (matches interface of fgets). -- cgit v1.2.3