Don't limit write to TCP send size if we are using a standard file.

This commit is contained in:
rfm 2025-05-02 18:58:46 +01:00
parent ef26045b9c
commit 059e6ffe2d

View file

@ -1434,7 +1434,10 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
{
int toWrite = len - pos;
toWrite = [GSTcpTune sendSize: toWrite];
if (NO == isStandardFile)
{
toWrite = [GSTcpTune sendSize: toWrite];
}
rval = [self write: (char*)ptr+pos length: toWrite];
if (rval < 0)
{