mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
04573159ab
commit
4048bec052
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue