]> git.ipfire.org Git - thirdparty/curl.git/commit
ftp: retry getpeername for FTP with TCP_FASTOPEN
authorKlaus Crusius <klaus.crusius@web.de>
Sat, 28 Nov 2020 17:17:11 +0000 (18:17 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 6 Dec 2020 10:18:28 +0000 (11:18 +0100)
commit2c0d7212151bce7f51ffb83a78876c2ed224958a
tree216203f81099b6ea08f08e6d99cb56428e93a58e
parent7a6fdd503db481ce8c3b17520dbafaddffc9200f
ftp: retry getpeername for FTP with TCP_FASTOPEN

In the case of TFO, the remote host name is not resolved at the
connetion time.

For FTP that has lead to missing hostname for the secondary connection.
Therefore the name resolution is done at the time, when FTP requires it.

Fixes #6252
Closes #6265
Closes #6282
lib/connect.c
lib/connect.h
lib/ftp.c