Re: [twsocket] 500: PAQSV exception No available PASV ports

2005-11-10 Thread Arno Garrels
New Era wrote:
> So inserting a high value into PasvPortRange may be a
> solution(start 16384 and PasvPortRange= 4), but if
> other applications randomly uses ports
> in this range, what will be the behaviour of the
> ftpserver I mean, if x application uses port 1 and
> when ftpserver also wants to open 1, it gets an
> error, in this error case does it simply increases
> port number to 16667 or simply fails.

The source code should give you the answer.

> 
> Another question is there a simple way under windows
> to  reserve some ports to the use of an application,
> Could I say to windows that ports 16300-16400 are
> reserved for ftpserver and do not allow other
> applications open any port in this range even if
> ftpserver is not using that port yet?.

I don't think so. However a FTP server could open
multiple listening sockets and attach them to clients
as needed (actually not possible with the FTP server
component).  

Arno Garrels


> 
> --- Arno Garrels <[EMAIL PROTECTED]> wrote:
> 
>> Marc wrote:
>>> With what I have see with the time, one port is skip for each
>>> transaction. so with the range you have, only 2 transactions
>> can be done.
>>> Windows keep the port open for some time, so you come at the end with no
>>> more port to do transaction.
>> 
>> Well, a closed socket remains in TIME_WAIT state for
>> a while until it is
>> destroyed by Windows, this discussion is not new.
>> But I don't think
>> that those sockets use/block a port while in that
>> state. You can do a simple
>> test, set PortRange to 1 and run the tool TCPView
>> from Sysinternals (it
>> updates the view of open sockets dynamically).
>> Now connect and RETR or NLST to open a data
>> connection in passive mode
>> several times. In TCPView you will see sockets in
>> TIMW_WAIT state however
>> it's no problem to establish a new data connection.
>> I checked that yesterday
>> on W2K.
>> 
>> ---
>> Arno Garrels [TeamICS]
>> 
>> 
>> 
>>> Even with a bigger range like 100 ports, you
>>> can easily come to with no free port just by checking some directory
>>> just because this will use a port for each send.
>>> 
>>> The PasvPortRangeStart set the start
>>> the max set the max and when the server can't use any port, this give
>>> you the No available PASV ports.
>>> 
>>> HTH
>>> 
>>> 
>>> Marc
>>> TYPSoft
>>> http://www.typsoft.com
>>> 
>>> At 03:50 2005-11-09 +, you wrote:
 There is only one client, this client connects to
 server checks some files and disconnects at some
 specified intervals(polling). So In this case the
 number 5 must be sufficient. PasvPortRangeStart
>> is
 default 16384. Does this means that the
>> application
 use 16384..16388.. If any port in this range is
>> in
 use, then application fails or it is exceeds this
 16388 limit...
 
>> I ran ftpserver program, and the clients in
>> passive
>> mode but after a while constantly I am getting
>> No
>> available PASV ports error.
>> --
>> To unsubscribe or change your settings for TWSocket
>> mailing list
>> please goto
>> http://www.elists.org/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>> 
> 
> 
> 
> 
> 
> 
> ___
> Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with
> voicemail http://uk.messenger.yahoo.com 
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] 500: PAQSV exception No available PASV ports

2005-11-09 Thread New Era

So inserting a high value into PasvPortRange may be a
solution(start 16384 and PasvPortRange= 4), but if
other applications randomly uses ports 
in this range, what will be the behaviour of the
ftpserver I mean, if x application uses port 1 and
when ftpserver also wants to open 1, it gets an
error, in this error case does it simply increases
port number to 16667 or simply fails.

Another question is there a simple way under windows
to  reserve some ports to the use of an application,
Could I say to windows that ports 16300-16400 are
reserved for ftpserver and do not allow other
applications open any port in this range even if
ftpserver is not using that port yet?. 

--- Arno Garrels <[EMAIL PROTECTED]> wrote:

> Marc wrote:
> > With what I have see with the time, one port is
> skip for each transaction.
> > so with the range you have, only 2 transactions
> can be done.
> > Windows keep the port open for some time, so you
> come at the end with no
> > more port to do transaction. 
> 
> Well, a closed socket remains in TIME_WAIT state for
> a while until it is
> destroyed by Windows, this discussion is not new.
> But I don't think
> that those sockets use/block a port while in that
> state. You can do a simple
> test, set PortRange to 1 and run the tool TCPView
> from Sysinternals (it
> updates the view of open sockets dynamically).
> Now connect and RETR or NLST to open a data
> connection in passive mode
> several times. In TCPView you will see sockets in
> TIMW_WAIT state however
> it's no problem to establish a new data connection.
> I checked that yesterday
> on W2K.
> 
> ---
> Arno Garrels [TeamICS]
> 
> 
> 
> > Even with a bigger range like 100 ports, you
> > can easily come to with no free port just by
> checking some directory just
> > because this will use a port for each send.
> > 
> > The PasvPortRangeStart set the start
> > the max set the max and when the server can't use
> any port, this give you
> > the No available PASV ports.
> > 
> > HTH
> > 
> > 
> > Marc
> > TYPSoft
> > http://www.typsoft.com
> > 
> > At 03:50 2005-11-09 +, you wrote:
> >> There is only one client, this client connects to
> >> server checks some files and disconnects at some
> >> specified intervals(polling). So In this case the
> >> number 5 must be sufficient. PasvPortRangeStart
> is
> >> default 16384. Does this means that the
> application
> >> use 16384..16388.. If any port in this range is
> in
> >> use, then application fails or it is exceeds this
> >> 16388 limit...
> >> 
>  I ran ftpserver program, and the clients in
> passive
>  mode but after a while constantly I am getting
> No
>  available PASV ports error.
> -- 
> To unsubscribe or change your settings for TWSocket
> mailing list
> please goto
> http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
> 






___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] 500: PAQSV exception No available PASV ports

2005-11-09 Thread Arno Garrels
Marc wrote:
> With what I have see with the time, one port is skip for each transaction.
> so with the range you have, only 2 transactions can be done.
> Windows keep the port open for some time, so you come at the end with no
> more port to do transaction. 

Well, a closed socket remains in TIME_WAIT state for a while until it is
destroyed by Windows, this discussion is not new. But I don't think
that those sockets use/block a port while in that state. You can do a simple
test, set PortRange to 1 and run the tool TCPView from Sysinternals (it
updates the view of open sockets dynamically).
Now connect and RETR or NLST to open a data connection in passive mode
several times. In TCPView you will see sockets in TIMW_WAIT state however
it's no problem to establish a new data connection. I checked that yesterday
on W2K.

---
Arno Garrels [TeamICS]



> Even with a bigger range like 100 ports, you
> can easily come to with no free port just by checking some directory just
> because this will use a port for each send.
> 
> The PasvPortRangeStart set the start
> the max set the max and when the server can't use any port, this give you
> the No available PASV ports.
> 
> HTH
> 
> 
> Marc
> TYPSoft
> http://www.typsoft.com
> 
> At 03:50 2005-11-09 +, you wrote:
>> There is only one client, this client connects to
>> server checks some files and disconnects at some
>> specified intervals(polling). So In this case the
>> number 5 must be sufficient. PasvPortRangeStart is
>> default 16384. Does this means that the application
>> use 16384..16388.. If any port in this range is in
>> use, then application fails or it is exceeds this
>> 16388 limit...
>> 
 I ran ftpserver program, and the clients in passive
 mode but after a while constantly I am getting No
 available PASV ports error.
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] 500: PAQSV exception No available PASV ports

2005-11-08 Thread Francois Piette
> Is there any way to get Windows close the port without
>  much delay..

Tehere is a registry key which govern the time winsock keep the socket in 
TIME_WAIT state. Search on
google. Maybe a bad idea to change that without knowing all the implications...

--
Contribute to the SSL Effort. Visit
http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be



- Original Message - 
From: "New Era" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, November 09, 2005 5:24 AM
Subject: Re: [twsocket] 500: PAQSV exception No available PASV ports


> Is there any way to get Windows close the port without
>  much delay..
>
> --- Marc <[EMAIL PROTECTED]> wrote:
>
> > With what I have see with the time, one port is skip
> > for each transaction.
> > so with the range you have, only 2 transactions can
> > be done.
> > Windows keep the port open for some time, so you
> > come at the end with no
> > more port to do transaction. Even with a bigger
> > range like 100 ports, you
> > can easily come to with no free port just by
> > checking some directory just
> > because this will use a port for each send.
> >
> > The PasvPortRangeStart set the start
> > the max set the max and when the server can't use
> > any port, this give you
> > the No available PASV ports.
> >
> > HTH
> >
> >
> > Marc
> > TYPSoft
> > http://www.typsoft.com
> >
> > At 03:50 2005-11-09 +, you wrote:
> > >There is only one client, this client connects to
> > >server checks some files and disconnects at some
> > >specified intervals(polling). So In this case the
> > >number 5 must be sufficient. PasvPortRangeStart is
> > >default 16384. Does this means that the application
> > >use 16384..16388.. If any port in this range is in
> > >use, then application fails or it is exceeds this
> > >16388 limit...
> > >
> > > >> I ran ftpserver program, and the clients in
> > passive
> > > >> mode but after a while constantly I am getting
> > No
> > > >> available PASV ports error.
> >
> > -- 
> > To unsubscribe or change your settings for TWSocket
> > mailing list
> > please goto
> > http://www.elists.org/mailman/listinfo/twsocket
> > Visit our website at http://www.overbyte.be
> >
>
>
>
>
> ___
> To help you stay safe and secure online, we've developed the all new Yahoo! 
> Security Centre.
http://uk.security.yahoo.com
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] 500: PAQSV exception No available PASV ports

2005-11-08 Thread New Era
Is there any way to get Windows close the port without
 much delay..

--- Marc <[EMAIL PROTECTED]> wrote:

> With what I have see with the time, one port is skip
> for each transaction. 
> so with the range you have, only 2 transactions can
> be done.
> Windows keep the port open for some time, so you
> come at the end with no 
> more port to do transaction. Even with a bigger
> range like 100 ports, you 
> can easily come to with no free port just by
> checking some directory just 
> because this will use a port for each send.
> 
> The PasvPortRangeStart set the start
> the max set the max and when the server can't use
> any port, this give you 
> the No available PASV ports.
> 
> HTH
> 
> 
> Marc
> TYPSoft
> http://www.typsoft.com
> 
> At 03:50 2005-11-09 +, you wrote:
> >There is only one client, this client connects to
> >server checks some files and disconnects at some
> >specified intervals(polling). So In this case the
> >number 5 must be sufficient. PasvPortRangeStart is
> >default 16384. Does this means that the application
> >use 16384..16388.. If any port in this range is in
> >use, then application fails or it is exceeds this
> >16388 limit...
> >
> > >> I ran ftpserver program, and the clients in
> passive
> > >> mode but after a while constantly I am getting
> No
> > >> available PASV ports error.
> 
> -- 
> To unsubscribe or change your settings for TWSocket
> mailing list
> please goto
> http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
> 




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] 500: PAQSV exception No available PASV ports

2005-11-08 Thread Marc
With what I have see with the time, one port is skip for each transaction. 
so with the range you have, only 2 transactions can be done.
Windows keep the port open for some time, so you come at the end with no 
more port to do transaction. Even with a bigger range like 100 ports, you 
can easily come to with no free port just by checking some directory just 
because this will use a port for each send.

The PasvPortRangeStart set the start
the max set the max and when the server can't use any port, this give you 
the No available PASV ports.

HTH


Marc
TYPSoft
http://www.typsoft.com

At 03:50 2005-11-09 +, you wrote:
>There is only one client, this client connects to
>server checks some files and disconnects at some
>specified intervals(polling). So In this case the
>number 5 must be sufficient. PasvPortRangeStart is
>default 16384. Does this means that the application
>use 16384..16388.. If any port in this range is in
>use, then application fails or it is exceeds this
>16388 limit...
>
> >> I ran ftpserver program, and the clients in passive
> >> mode but after a while constantly I am getting No
> >> available PASV ports error.

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] 500: PAQSV exception No available PASV ports

2005-11-08 Thread Arno Garrels
New Era wrote:
> I ran ftpserver program, and the clients in passive
> mode but after a while constantly I am getting No
> available PASV ports error.

Sounds very normal in case of 5 clients have data channels
open in passive mode and a 6th is trying to establish one.
Have you set a larger range (20)?
Is it possible that another application uses ports from
the specified range?
Have you tried to change property PasvPortRangeStart?

 
> 
> I searched the mailing list and saw other comments
> about the same issue. But no solution yet. I had
> downloaded the ICS latest version (In the readme txt
> it has a line saying "revised : May 29, 2005"),
> recompiled the source but getting the same error
> message...
> 
> I am using the sample application of fpiette, named
> FtpServ.dpr, I did not any change,
> 
> Do I have to change some properties, In the example
> PasvIpAddr is empty, PasvPortRange is 5, Do I have
> change this properties..
> 
> 
> 
> 
> 
> 
> 
> ___
> Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with
> voicemail http://uk.messenger.yahoo.com 
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be