Skip to content

memory footprint for ftpClient #17

@erwinschrodinger1

Description

@erwinschrodinger1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions