bentonstark / starksoft-aspen

.net / mono security and cryptography library that provides client support for ftps, gnupg, smartcard, and socks / http proxies
106 stars 49 forks source link

ftpsClient::Open TrySetUtf8On(); FileZilla Server #17

Closed 005Zenturio closed 8 years ago

005Zenturio commented 8 years ago

Hi, thanks for this nice work i realy like this ftp client. I have one issue, if i connect to an FileZilla FTP Server the client allways try to set UTF8 ON this delays the open for around 30 seconds.

It is possible to create a property or something else to avoid the open command from running TrySetUtf8On(); this would be nice.

Kind Regards

bentonstark commented 8 years ago

Ok, so the problem was that although FileZilla supports UTF8 as a feature it like to return a 202 instead of a 200 because they like to be a bit different. The client was waiting for a 200 and then timing out after about 30 seconds because it never gets it. The 202 is perfectly fine but not something most servers will do if they offer UTF8 as a supported feature.

(000013)6/5/2016 17:23:42 PM - test (127.0.0.1)> 202 UTF8 mode is always enabled. No need to send this command.

So I am now checking for 200 and 202 and everything is working better. I will release the update in the next version.