From 1ae9d05173a5960eaf84dcb55b91374fa2bb6639 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 25 Nov 2005 00:05:56 +0000 Subject: Added --connect-timeout option to control the timeout on TCP client connection attempts (doesn't work on all OSes). This patch also makes OpenVPN signalable during TCP connection attempts. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@823 e7ae566f-a301-0410-adde-c780ea21d3b5 --- syshead.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'syshead.h') diff --git a/syshead.h b/syshead.h index 9737a4b..d25b82c 100644 --- a/syshead.h +++ b/syshead.h @@ -478,4 +478,11 @@ socket_defined (const socket_descriptor_t sd) */ #define TIME_BACKTRACK_PROTECTION 1 +/* + * Is non-blocking connect() supported? + */ +#if defined(HAVE_GETSOCKOPT) && defined(SOL_SOCKET) && defined(SO_ERROR) && defined(EINPROGRESS) && defined(ETIMEDOUT) +#define CONNECT_NONBLOCK +#endif + #endif -- cgit v1.2.3