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:
Richard Frith-MacDonald 2008-02-14 15:11:20 +00:00
parent 04573159ab
commit 4048bec052
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-02-14 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSHTTPURLHandle.m: Remove self as observer of socket
while ssl connection is in progress.
2008-02-13 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSArray.m: Minor optimisation ...use a subarray when

View file

@ -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];