PxPlus User Forum

Twitter Twitter Twitter

Author Topic: OPEN [TCP] Timeout  (Read 970 times)

Mark Brown

  • Member
  • **
  • Posts: 5
    • View Profile
OPEN [TCP] Timeout
« on: January 17, 2020, 10:31:08 AM »
If a TIM= option is not specified when doing an OPEN (x)"[TCP]…" is there an internal value that PxPlus uses before timing out anyway?
Thanks
Mark Brown

Mike King

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: OPEN [TCP] Timeout
« Reply #1 on: January 17, 2020, 10:50:05 AM »
There is no set timeout, it depends on the OS in use and network setup. 

For example if the IP address you are looking is not accessible, the routers/interface may return quickly.  It could also be that a firewall is actively refusing connections thus the error will return almost immediately.  The longest timeout is generally if the machine is reachable but nothing is listening on the port you are connecting to.

Generally the longest timeout on Linux and Windows is around 20 seconds, but again that can vary with the OS and I believe ALL OS'es do have a eventual timeout and its normally well under a minute.

When in doubt we always suggest putting a TIM= on the OPEN and ALL TCP communications.

Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com