summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--FTPClient.cpp2
-rw-r--r--FTPServer.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/FTPClient.cpp b/FTPClient.cpp
index c498ed0..aa31ec7 100644
--- a/FTPClient.cpp
+++ b/FTPClient.cpp
@@ -160,7 +160,7 @@ void FTPClient::handleFTP()
millisBeginTrans = millis();
bytesTransfered = 0;
ftpState = cTransfer;
- allocateBuffer(4 * TCP_MSS);
+ allocateBuffer(TCP_MSS);
if (_direction & FTP_PUT_NONBLOCKING)
{
CLIENT_SEND("STOR %s", _remoteFileName.c_str());
diff --git a/FTPServer.cpp b/FTPServer.cpp
index 86adcdb..ca224e8 100644
--- a/FTPServer.cpp
+++ b/FTPServer.cpp
@@ -754,7 +754,7 @@ int8_t FTPServer::processCommand()
millisBeginTrans = millis();
bytesTransfered = 0;
uint32_t fs = file.size();
- if (allocateBuffer(4 * TCP_MSS))
+ if (allocateBuffer(TCP_MSS))
{
FTP_DEBUG_MSG("Sending file '%s' (%lu bytes)", path.c_str(), fs);
FTP_SEND_MSG(150, "%lu bytes to download", fs);
@@ -801,7 +801,7 @@ int8_t FTPServer::processCommand()
transferState = tStore;
millisBeginTrans = millis();
bytesTransfered = 0;
- if (allocateBuffer(4 * TCP_MSS))
+ if (allocateBuffer(TCP_MSS))
{
FTP_DEBUG_MSG("Receiving file '%s' => %s", parameters.c_str(), path.c_str());
FTP_SEND_MSG(150, "Connected to port %d", dataPort);