mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-12 17:11:12 +00:00
check for read in progress.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23178 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c5aca55532
commit
3ca79c6b64
2 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-07-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/GSHTTPURLHandle.m: Only queue a new read on a handle if there
|
||||||
|
is not one in progress. Where a connection has been kept alive, we
|
||||||
|
can have an outstanding read intended to determine when the connection
|
||||||
|
is dropped by the remote end.
|
||||||
|
|
||||||
2006-07-15 17:00 Gregory John Casamento <greg_casamento@yahoo.com>
|
2006-07-15 17:00 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/NSKeyedUnarchiver.m: Partial fix for bug#17112.
|
* Source/NSKeyedUnarchiver.m: Partial fix for bug#17112.
|
||||||
|
|
|
@ -708,7 +708,10 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
||||||
if (sock != nil
|
if (sock != nil
|
||||||
&& (connectionState == reading || connectionState == idle))
|
&& (connectionState == reading || connectionState == idle))
|
||||||
{
|
{
|
||||||
[sock readInBackgroundAndNotify];
|
if ([sock readInProgress] == NO)
|
||||||
|
{
|
||||||
|
[sock readInBackgroundAndNotify];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RELEASE(self);
|
RELEASE(self);
|
||||||
|
@ -755,7 +758,10 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
[sock readInBackgroundAndNotify];
|
if ([sock readInProgress] == NO)
|
||||||
|
{
|
||||||
|
[sock readInBackgroundAndNotify];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
RELEASE(p);
|
RELEASE(p);
|
||||||
RELEASE(self);
|
RELEASE(self);
|
||||||
|
|
Loading…
Reference in a new issue