summaryrefslogtreecommitdiffstats
path: root/FTPClient.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 /FTPClient.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 'FTPClient.cpp')
-rw-r--r--FTPClient.cpp2
1 files changed, 1 insertions, 1 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());