FubarDevelopment / FtpServer

Portable FTP server written in .NET
http://fubardevelopment.github.io/FtpServer/
MIT License
483 stars 163 forks source link

readTask sometimes stuck on USER command. #10

Closed hytgbn closed 8 years ago

hytgbn commented 8 years ago

Hi, I'm trying to test FtpServer behavior on osx using Xamarin with Mono 4.2.4 as well as 3.10.0. This happens mostly when I try to make multiple concurrent connection to ftp server, but also happens when I try to reconnect.

After some debugging, I found that readTask doesn't complete after ftp client sends USER command. I checked tcpdump and confirmed that server ACK'd USER command part. Interestingly, when I change readTask to synchronous Read() instead of ReadAsync() it could read correct full USER command. Also, if I change the size of buffer in ProcessMessages() to 16, which is "USER anonymous\r\n", it always success to read.

I don't have many experiences on C# especially on OSX. Have you experienced this case before?

Thanks, hytgbn

fubar-coder commented 8 years ago

I'm not aware of any problems during the authentication, but it might be aproblem with mono. A reliable test case is required before I can fix this problem. Thanks for reporting.