mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
backport fix for blocking write
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35657 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a5a4100f1f
commit
50df474f5d
1 changed files with 10 additions and 0 deletions
|
@ -1559,6 +1559,16 @@ static NSURLProtocol *placeholder = nil;
|
|||
_writeOffset = 0;
|
||||
}
|
||||
}
|
||||
else if ([this->output streamStatus]
|
||||
== NSStreamStatusWriting)
|
||||
{
|
||||
/* Couldn't write it all now, save and try
|
||||
* again later.
|
||||
*/
|
||||
_writeData = [[NSData alloc] initWithBytes:
|
||||
buffer length: len];
|
||||
_writeOffset = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue