summaryrefslogtreecommitdiffstats
path: root/FTPServer.cpp
diff options
context:
space:
mode:
authorDaniel Plasa <dplasa@gmail.com>2020-05-29 23:42:24 +0200
committerDaniel Plasa <dplasa@gmail.com>2020-05-29 23:42:24 +0200
commit81d8d135ac47dec1b26c1896fd8e3b784cca6229 (patch)
tree3e65a5aea1a0770a4594c764e9ff2b5e78885d48 /FTPServer.cpp
parentuse a buffer size that depends on the size of the lwip buffer configuration (diff)
downloadFTPCLientServer-81d8d135ac47dec1b26c1896fd8e3b784cca6229.tar
FTPCLientServer-81d8d135ac47dec1b26c1896fd8e3b784cca6229.tar.gz
FTPCLientServer-81d8d135ac47dec1b26c1896fd8e3b784cca6229.tar.bz2
FTPCLientServer-81d8d135ac47dec1b26c1896fd8e3b784cca6229.tar.lz
FTPCLientServer-81d8d135ac47dec1b26c1896fd8e3b784cca6229.tar.xz
FTPCLientServer-81d8d135ac47dec1b26c1896fd8e3b784cca6229.tar.zst
FTPCLientServer-81d8d135ac47dec1b26c1896fd8e3b784cca6229.zip
Diffstat (limited to 'FTPServer.cpp')
-rw-r--r--FTPServer.cpp4
1 files changed, 2 insertions, 2 deletions
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);