Opened 12 years ago

Closed 11 years ago

#8093 closed Patch (fixed)

Increase number of retries (it's only 3) at FZS when using PASV and Port range

Reported by: JLM Owned by:
Priority: high Component: FileZilla Server
Keywords: PASV retries Cc:
Component version: Operating system type: Windows
Operating system version: 2003

Description

Please, can you make this tiny change?

In the ControlSocket.cpp file change

unsigned int retries = 3;

to

unsigned int retries = 10;

or any other value (please, at least 5).

I have a FZS that sometimes fails when using PASV and a given range of ports, because in that case the server does not use a free port given by the OS, but tries to create a socket in a free port of that range, and if it is not free it tries with the next one up to 3 times before failing with the answer: '421 Could not create socket'.
The solution can be just to increase a little the number of attempts to find a free port where to create the socket for the data connection (the aforementioned unsigned int retries = 3;).

Thank you in advance.

Change History (1)

comment:1 by Tim Kosse, 11 years ago

Resolution: fixed
Status: newclosed

Thanks, applied.

Note: See TracTickets for help on using tickets.