Sign in to follow this  
Followers 0
LibrarianMark

Setting the timeout on TCPConnect()

6 posts in this topic

Folks -

The printing application I am creating right now needs to test the presence of an FTP server. I can use ping to tell if the host server is running and it's really quick, but I would like to actually find out if FTP is running. The problem is when I use TCPConnect it takes a very long time (20 sec. or so) to come back if the FTP service is not running. My users are not going to want to wait that long.

Is there a way to shorten the wait time? Or a better method than using TCPConnect?

Thanks again!

Library Mark

Share this post


Link to post
Share on other sites



are you talking about this?

Opt('TCPTimeout',100);Defines the time before TCP functions stop if no communication. Time in milliseconds before timeout (default=100).

if i'm not mistaken, it might not be the timeout feature that is taking so long, but the fact that the packet might have to travel such distance to get to the destination.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

are you talking about this?

O
;Defines the time before TCP functions stop if no communication. Time in milliseconds before timeout (default=100).

if i'm not mistaken, it might not be the timeout feature that is taking so long, but the fact that the packet might have to travel such distance to get to the destination.

Thanks - You know, I tried that, but it didn't make any difference. The server is on the same network segment as the clients are. Edited by LibrarianMark

Share this post


Link to post
Share on other sites

Ok - after more searching, looks like this is bug #1573, which says, "Fixed by revision [5826] in version: 3.3.7.0". What does that mean?

Share this post


Link to post
Share on other sites

are you talking about this?

Opt('TCPTimeout',100);Defines the time before TCP functions stop if no communication. Time in milliseconds before timeout (default=100).

if i'm not mistaken, it might not be the timeout feature that is taking so long, but the fact that the packet might have to travel such distance to get to the destination.

Other galaxy maybe.

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

well.. i know that one try of sending a packet to japan from canada took 6 or 7 seconds to return with a script me and a buddy made.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0