Thank you Niklas, thank you Sai

Yes I plan to upgrade, but I don't have time now for that ...
This Dec 2007 version is ok until now Niklas, we do many transfers without any 
problem on several servers

I have found the reason of this issue

My data connection properties are :
config.listeners.default.data-connection.class=org.apache.ftpserver.DefaultDataConnectionConfig
config.listeners.default.data-connection.idle-time=5
config.listeners.default.data-connection.active.enable=false
#config.listeners.default.data-connection.active.local-address=localhost
#config.listeners.default.data-connection.active.local-port=20
# used by command PORT
#config.listeners.default.data-connection.active.ip-check=true
## default value = config.listeners.default.address
## config.listeners.default.data-connection.passive.address=localhost
config.listeners.default.data-connection.passive.ports=9921,9922,9923
## default value = config.listeners.default.address

At debug level, when it's ok ftpserver says :
00:00:35,108 DEBUG ftpserver.IODataConnectionFactory pool-2-thread-7 - SSL data 
connection created on /192.168.9.79:9921

This server runs a mysql client, and a tcpdump showed this (mmut01 is 
192.168.9.79) :
tcpdump: listening on eth0
19:00:52.895625 mmut01.9921 > mytus.priv.atos.fr.3307: S 
2061302194:2061302194(0) win 5840 <mss 1460,sackOK,timestamp 25
47785201[|tcp]> (DF)
19:00:52.895839 mytus.priv.atos.fr.3307 > mmut01.9921: S 
1330322014:1330322014(0) ack 2061302195 win 5792 <mss 1460,sack
OK,timestamp 3550800202[|tcp]> (DF)
19:00:52.895855 mmut01.9921 > mytus.priv.atos.fr.3307: . ack 1 win 23 
<nop,nop,timestamp 2547785201 3550800202> (DF)
19:00:52.897115 mytus.priv.atos.fr.3307 > mmut01.9921: P 1:48(47) ack 1 win 
5792 <nop,nop,timestamp 3550800202 254778520
1> (DF) [tos 0x8]

So sometimes there's a port conflict for the dynamic and passive connection on 
port# 9921
I'm looking for a workaround, the best is probably to forbid mysql (or any 
other application) to use the 3 passive ports of ftpserver as local ports


-----Message d'origine-----
De : Niklas Gustavsson [mailto:[email protected]]
Envoyé : mardi 9 juin 2009 22:32
À : [email protected]
Objet : Re: Failed to open passive data connection

On Tue, Jun 9, 2009 at 10:08 PM, Sai
Pullabhotla<[email protected]> wrote:
> But don't you think that having just 3 passive ports available would pose a
> problem if there are more than 3 concurrent data connections open? I would
> like to be educated a little bit If I'm not understanding the source from
> the trunk correctly.

You're understanding is correct :-) We got a patch for handling
multiple connections per port, but it have not yet been applied
(scheduled for 1.1.0). So, yeah, it would be a problem. But since
Gerard only seem to get this on some environments, I'm thinking it
might also be related to socket handling, an area were we have closed
many bugs.

/niklas



Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.

Reply via email to