IP_CLIENT_OPEN timeout
Joe Hebert
Junior Member
Is there a way to change the timeout for IP_CLIENT_OPEN?
It looks like the timeout is only 30 seconds.
From a DOS prompt, the SMTP server that I’m using normally takes 60-65 seconds to connect. Sometimes it connects immediately but most of the times it takes a little over a minute. I don’t know why it takes so long but that’s what I’m stuck with.
I could have sworn that the timeout for an IP_CLIENT_OPEN was 75 seconds at one time but that’s not the case anymore.
So does anyone know how to extend an IP_CLIENT_OPEN request for more than 30 seconds?
Thanks.
It looks like the timeout is only 30 seconds.
From a DOS prompt, the SMTP server that I’m using normally takes 60-65 seconds to connect. Sometimes it connects immediately but most of the times it takes a little over a minute. I don’t know why it takes so long but that’s what I’m stuck with.
I could have sworn that the timeout for an IP_CLIENT_OPEN was 75 seconds at one time but that’s not the case anymore.
So does anyone know how to extend an IP_CLIENT_OPEN request for more than 30 seconds?
Thanks.
Comments
-
By timeout do you mean the time it stays open once a connection is made, or how long it will attempt to make a connection?
If its the former, I don't think there is a timeout. The socket will stay connected indefinitely until the server resets or ends the connection. If its the latter, then I don't think its changeable, since its probably a VXWorks setting that Netlinx doesn't have access to. Are you sure that's the problem though? I am thinking that the server is probably resetting and closing the connection rather than it timing out. If you watch wireshark during the connection attempt what do you see?
Paul -
It's the latter - how long IP_CLIENT_OPEN will attempt to make a connection until generating an ONERROR: 7: Connection timed out. You get 30 seconds.By timeout do you mean the time it stays open once a connection is made, or how long it will attempt to make a connection?
If its the former, I don't think there is a timeout. The socket will stay connected indefinitely until the server resets or ends the connection. If its the latter, then I don't think its changeable, since its probably a VXWorks setting that Netlinx doesn't have access to. Are you sure that's the problem though? I am thinking that the server is probably resetting and closing the connection rather than it timing out. If you watch wireshark during the connection attempt what do you see?
Paul -
Joe Hebert wrote: »It's the latter - how long IP_CLIENT_OPEN will attempt to make a connection until generating an ONERROR: 7: Connection timed out. You get 30 seconds.
Yes 30 seconds is what I've seen as well. I usually use 35 seconds as my wait time to attempt a retry. If the server is too busy to accept the socket connection within 30 seconds, then I don't see any way around it other than making multiple attempts every 30 seconds and hoping to get lucky, or using multiple ip_client_open requests to increase your chances of making a connection. Waiting over a minute for a STMP server is a pretty long time these days.
Paul -
I agree but for some reason this one consistently takes 60-65 seconds and 1 in 20 tries it connects immediately. Ugh.Waiting over a minute for a STMP server is a pretty long time these days.
Thanks for the feedback. -
Problem solved.
Instead of using port 25 I'm using port 587 and now I get immediate connects on a consistent basis. -
-
587 is also the port I've been using for the server I connect to but I've been using that for years and don't recall if it was because 25 gave me trouble as you've experienced or if I just read somewhere to use the alternate port. Some times dumb luck is better than no luck at all.Joe Hebert wrote: »Problem solved.
Instead of using port 25 I'm using port 587 and now I get immediate connects on a consistent basis.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums
