Skip to content

ftp: fix wrong poll on the secondary socket#978

Closed
alesax wants to merge 1 commit into
curl:masterfrom
alesax:ftp_upload
Closed

ftp: fix wrong poll on the secondary socket#978
alesax wants to merge 1 commit into
curl:masterfrom
alesax:ftp_upload

Conversation

@alesax
Copy link
Copy Markdown
Contributor

@alesax alesax commented Aug 23, 2016

When we're uploading using FTP and the server issues a tiny pause
between opening the connection to the client's secondary socket, the
client's initial poll() times out, which leads to second poll() which
does not wait for POLLIN on the secondary socket. So that poll() also
has to time out, creating a long (200ms) pause.

This patch adds the correct flag to the secondary socket, making the
second poll() correctly wait for the connection there too.

Signed-off-by: Ales Novak alnovak@suse.cz

When we're uploading using FTP and the server issues a tiny pause
between opening the connection to the client's secondary socket, the
client's initial poll() times out, which leads to second poll() which
does not wait for POLLIN on the secondary socket. So that poll() also
has to time out, creating a long (200ms) pause.

This patch adds the correct flag to the secondary socket, making the
second poll() correctly wait for the connection there too.

Signed-off-by: Ales Novak <alnovak@suse.cz>
@bagder bagder closed this in 7ad50a6 Aug 23, 2016
@bagder
Copy link
Copy Markdown
Member

bagder commented Aug 23, 2016

thanks!

@lock lock Bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants