Skip to content
Commit 7ad50a61 authored by Ales Novak's avatar Ales Novak Committed by Daniel Stenberg
Browse files

ftp: fix wrong poll on the secondary socket



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: default avatarAles Novak <alnovak@suse.cz>

Closes #978
parent 15592143
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment