hey @nopnop2002. while tracking the memory for ftpclient it should tentatively take 4096 (for crtl buf) + 1024 (for response buffer) + 4096 (if ascii - but what is the requirement for this in case of ASCII?
|
if ((mode == 'A') && ((ctrl->buf = malloc(FTP_CLIENT_BUFFER_SIZE)) == NULL)) { |
|
#if FTP_CLIENT_DEBUG |
|
perror("FTP Client openPort: malloc ctrl->buf"); |
|
#endif |
|
closesocket(sData); |
|
free(ctrl); |
|
return -1; |
|
} |
I am happy to contribute on creating a memory footprint docs. Can you please help me figure it out?
hey @nopnop2002. while tracking the memory for ftpclient it should tentatively take 4096 (for crtl buf) + 1024 (for response buffer) + 4096 (if ascii - but what is the requirement for this in case of ASCII?
esp-idf-ftpClient/components/ftpClient/FtpClient.c
Lines 501 to 508 in 1ca7034
I am happy to contribute on creating a memory footprint docs. Can you please help me figure it out?