Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFTP download over HTTPS proxy stalls #6113

Closed
bagder opened this issue Oct 22, 2020 · 4 comments
Closed

SFTP download over HTTPS proxy stalls #6113

bagder opened this issue Oct 22, 2020 · 4 comments

Comments

@bagder
Copy link
Member

bagder commented Oct 22, 2020

I did this

Download an SFTP file over an HTTPS proxy. It seems to stall:

curl -x https://127.0.0.1:8843 sftp://127.0.0.1/17M -o /dev/null --proxy-insecure -kv

I expected the following

Downloading a directory from the same server and proxy setup seems to work!

curl/libcurl version

Current git master.

curl 7.73.1-DEV (x86_64-pc-linux-gnu) libcurl/7.73.1-DEV OpenSSL/1.1.1h zlib/1.2.11 brotli/1.0.9 zstd/1.4.5 c-ares/1.16.1 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0_DEV nghttp2/1.41.0-DEV librtmp/2.3
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS brotli Debug GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP TrackMemory UnixSockets zstd

operating system

Linux

@bagder
Copy link
Member Author

bagder commented Oct 22, 2020

Clearly the fix in #6021 was not sufficient...

@0x447a
Copy link

0x447a commented Oct 23, 2020

Did you try using a different proxy?

@emilengler
Copy link
Contributor

Did you try using a different proxy?

I think it's rare that the problem lies in the server

@bagder
Copy link
Member Author

bagder commented Oct 24, 2020

I know it isn't about the server or the proxy, a little simple debugging shows this. And anyone trying this should be able to reproduce fairly easily.

bagder added a commit that referenced this issue Oct 26, 2020
The fix in #6021 was not enough. This fix makes sure SCP/SFTP content
can also be transfered over a HTTPS proxy.

Fixes #6113
bagder added a commit that referenced this issue Oct 26, 2020
The fix in #6021 was not enough. This fix makes sure SCP/SFTP content
can also be transfered over a HTTPS proxy.

Fixes #6113
bagder added a commit that referenced this issue Oct 26, 2020
The fix in #6021 was not enough. This fix makes sure SCP/SFTP content
can also be transfered over a HTTPS proxy.

Fixes #6113
@bagder bagder closed this as completed in 9a84462 Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants