Skip to content

Conversation

@ndossche
Copy link
Member

Looking at the strace, the timeout is only 1s which may be too low anyway for checking for a response, but some servers also don't end up replying finally anyway and close the connection already.

data_available was originally used for non-blocking downloads/uploads and then reused for the shutdown sequence, but its error handling was never adjusted to be silent.

…ccessful writes

Looking at the strace, the timeout is only 1s which may be too low
anyway for checking for a response, but some servers also don't end up
replying finally anyway and close the connection already.

`data_available` was originally used for non-blocking downloads/uploads
and then reused for the shutdown sequence, but its error handling was
never adjusted to be silent.
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks understandable solution, I was confused for a little while with the shadowed variable buf though.

Comment on lines +1616 to +1618
if (silent) {
return 0;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While merging up, the signature of the function was changed, so please make it return false rather than 0 then.

@ndossche ndossche closed this in 8761c4e Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FTP with SSL: ftp_fput(): Connection timed out on successful writes

3 participants