summaryrefslogtreecommitdiffstats
path: root/FTPClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'FTPClient.cpp')
-rw-r--r--FTPClient.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/FTPClient.cpp b/FTPClient.cpp
index 84c4fdb..c498ed0 100644
--- a/FTPClient.cpp
+++ b/FTPClient.cpp
@@ -160,15 +160,14 @@ void FTPClient::handleFTP()
millisBeginTrans = millis();
bytesTransfered = 0;
ftpState = cTransfer;
+ allocateBuffer(4 * TCP_MSS);
if (_direction & FTP_PUT_NONBLOCKING)
{
CLIENT_SEND("STOR %s", _remoteFileName.c_str());
- allocateBuffer(file.size());
}
else if (_direction & FTP_GET_NONBLOCKING)
{
CLIENT_SEND("RETR %s", _remoteFileName.c_str());
- allocateBuffer(2048);
}
}
}