PDA

View Full Version : Limit number of connections?


langjoshua
11-14-2007, 10:29 PM
I was running into an error when transfering alot of files between my host and my computer (backing up and reloading cms' etc) this is all that was viewable in the log:

[R] 227 Entering Passive Mode (xxx,xxx,xxx,xxx,xxx,xxx)
[R] Opening data connection IP: xxx.xxx.xxx.xxx PORT: xxxx
[R] Data Socket Error: Connection timed out
[R] Transfer Failed!
[R] Connection lost: (my site name)

I contacted my host and after numerous replies back and forth we determined that my client was opening too many connections and their router was banning my for short periods of time (30 mins) their logs show this:

Wed Nov 14 06:01:08 2007 lfd: (CT) IP xxx.xxx.xxx.xxx found to have 207 connections - *Blocked in csf* for 1800 secs

they said I need to change my setting and limit my number of connections to 50. however after searching google, and not turning up anything realavant. scouring the fourms, I still have not recieved the answer to my problem.

I'm hoping someone here can help?

Thanks,
Joshua Lang

MxxCon
11-15-2007, 01:04 AM
your webhost is wrong.
at any one time Flashfxp can have a maximum of 2 connections per site.
one is a control connection, this is where flashfxp and server send commands to each other, this is what you see in the status window.
and during file transfers/directory listing there one connection for data transfer.
with ftp protocol it is simply impossible to have less connections.
flashfxp is not multi-threaded, so it is not opening multiple connections to the same server.

it seems like your webhost's router/ftp server is misconfigured and it doesn't properly close connections fast enough. that would be the reason why they'd see 207 connections when you transfer a bunch of small files in a short period of time and trigger that block.

alternatively, you could try to disable pasv mode for that site. that might bypass your hosts block rules. tho for this to work, if you are using a router, it needs to be properly configured to forward data port range.

langjoshua
11-16-2007, 08:46 AM
Thanks that appears to work.