From ca5f252894a0047cecb4164cda029f943bcc01a7 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Wed, 5 Dec 2012 10:13:10 +0000 Subject: [PATCH] set into non-blocking mode git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35847 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSFileHandle.m | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index c6323e1d5..2202ac1f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-12-05 Richard Frith-Macdonald + + * Source/NSFileHandle: ([-sslHandshakeEstablished:outgoing:]) + Set the connection into non-blocking mode so that the handshake + will not block if the other end refuses to talk to us. + 2012-12-01 Fred Kiefer * Source/NSXMLNode.m (-XMLStringWithOptions:): Use macros for diff --git a/Source/NSFileHandle.m b/Source/NSFileHandle.m index 67b79aa0b..5b55f25fd 100644 --- a/Source/NSFileHandle.m +++ b/Source/NSFileHandle.m @@ -1015,6 +1015,7 @@ GSTLSHandlePush(gnutls_transport_ptr_t handle, const void *buffer, size_t len) [d release]; } } + [self setNonBlocking: YES]; session = [[GSTLSSession alloc] initWithOptions: opts direction: isOutgoing transport: (void*)self