giampaolo / pyftpdlib

Extremely fast and scalable Python FTP server library
MIT License
1.65k stars 267 forks source link

no data sent with STOR #521

Open WimWWimW opened 4 years ago

WimWWimW commented 4 years ago

version 1.5.6

When the client sends a STOR command, the local file is opened on the server, but the file object never gets write() of writelines() called. The file is created on the file system, but its size remains 0 bytes.

Eventually tested with the most basic setup as in the tutorial.

This happens with WinSCP as client, not with (window's xp cmd) ftp shell.

WimWWimW commented 4 years ago

see also: https://github.com/WimWWimW/mpFPTel/issues/1

giulioprovasi commented 3 years ago

@giampaolo do you have an idea ? I get the same issue on my ftp server

Some users can't upload any files due to the fact that STOR sends no data at all (seems an issue with opening the Data Connection)

On the server logs I see

150 File status okay. About to open data connection.

and, while connection still hasn't been opened (?) The filezilla client is already sending data, therefore the server gets nothing at all...

It's a really weird which isn't 100% reproductible