mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix possible interference with slow ssl connection attempt
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26062 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5dd8e35a27
commit
8ade11113a
2 changed files with 9 additions and 2 deletions
|
@ -984,9 +984,11 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
}
|
||||
if ([[u scheme] isEqualToString: @"https"])
|
||||
{
|
||||
/*
|
||||
* If we are an https connection, negotiate secure connection
|
||||
/* If we are an https connection, negotiate secure connection.
|
||||
* Make sure we are not an observer of the file handle while
|
||||
* it is connecting...
|
||||
*/
|
||||
[nc removeObserver: self name: nil object: sock];
|
||||
if ([sock sslConnect] == NO)
|
||||
{
|
||||
[self endLoadInBackground];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue