AnsweredAssumed Answered

SOL_TCP OPT_CONNECT_TIMEOUT inconsistent

Question asked by Johannes Schock on Jan 30, 2015
Latest reply on Jan 30, 2015 by Radek Sestak

I think either the implementation or documentation of OPT_CONNECT_TIMEOUT is wrong:

The implementation and usage of OPT_CONNECT_TIMEOUT is a timeout during calls to connect(). Typical values (e.g. FTP-Server) are 5000ms.

The documentation (Freescale MQX™ RTOS RTCS™ User’s Guide, Rev. 16, page 282) mentions:

 

     Connect Timeout:

     Option name OPT_CONNECT_TIMEOUT

     Protocol level SOL_TCP

     Values >= 180,000 (RTCS maintains the connection for this number of

     milliseconds).

     Default value 480,000 (eight minutes).

 

Which sounds like a connection inactivity timeout, because 3 minutes minimum timeout for a call to connect is way too high.

Can anyone please clarify?

 

Regards, Johannes Schock

Outcomes