From 81d8d135ac47dec1b26c1896fd8e3b784cca6229 Mon Sep 17 00:00:00 2001 From: Daniel Plasa Date: Fri, 29 May 2020 23:42:24 +0200 Subject: use a buffer size that only depends on the size of the lwip buffer config --- FTPClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FTPClient.cpp') 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()); -- cgit v1.2.3