mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-06 06:30:46 +00:00
Don't limit write to TCP send size if we are using a standard file.
This commit is contained in:
parent
ef26045b9c
commit
059e6ffe2d
1 changed files with 4 additions and 1 deletions
|
@ -1434,7 +1434,10 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
||||||
{
|
{
|
||||||
int toWrite = len - pos;
|
int toWrite = len - pos;
|
||||||
|
|
||||||
toWrite = [GSTcpTune sendSize: toWrite];
|
if (NO == isStandardFile)
|
||||||
|
{
|
||||||
|
toWrite = [GSTcpTune sendSize: toWrite];
|
||||||
|
}
|
||||||
rval = [self write: (char*)ptr+pos length: toWrite];
|
rval = [self write: (char*)ptr+pos length: toWrite];
|
||||||
if (rval < 0)
|
if (rval < 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue