Review Request 115250: Try PASV mode when using Socks proxy

Emil Sedgh emilsedgh at
Mon Oct 27 21:56:58 GMT 2014

This is an automatically generated e-mail. To reply, visit:

(Updated Oct. 27, 2014, 9:56 p.m.)


This change has been marked as submitted.

Review request for kdelibs, Dawit Alemayehu and David Faure.

Repository: kdelibs


FTP has two modes: PASV and EPSV.
Not all server's support EPSV.

Currently, kio_ftp gives up on PASV mode if socks proxy is enabled.
That is because QHostAddress.protocol() returns -1 (unknown protocol) on KUrl("socks://localhost:3128").

So kio_ftp fails using SOCKS proxy on server's that lack EPSV support.

This patch makes sure kio_ftp will try PASV mode if socks proxy is enabled.


  kioslave/ftp/ftp.cpp 5bb2e8d 



Tested a server that lacks EPSV support with and without proxy.
Seems fine now.
Used to throw 'Internal Server error'.


Emil Sedgh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list