View topic - How to configure SO_KEEPALIVE for accept()

How to configure SO_KEEPALIVE for accept()

For the old QNX2 and QNX4 RTOS

How to configure SO_KEEPALIVE for accept()

Postby apoorv_bel » Tue Aug 12, 2003 10:05 am

I would like to know how i can set the time of SO_KEEPALIVE, so that the program terminates when i remove the client's connection ... when the server is in a blocking function call.....I am working on QNX 4.25..
New Member
Posts: 1
Joined: Tue Aug 12, 2003 9:57 am

Postby rgallen » Tue Aug 12, 2003 5:28 pm

This is a generic TCP/IP question. If you google for "socket FAQ" and then look for the question
"Why does it take so long to detect that the peer died". You will get an explanation.

Bottom line: probably not a good idea to use KEEPALIVE, better to implemenent an application specific heartbeat.
QNX Master
Posts: 671
Joined: Thu Jul 11, 2002 6:48 pm

Postby xtang » Wed Aug 20, 2003 5:48 pm

Well, QNX 4 (I forgot from which tcpip version) support TCP_KEEPLIVE
option, which allowes application change that 2 hour into a different
value. To make a short timeout.
QNX Master
Posts: 313
Joined: Thu Jul 18, 2002 5:01 pm

Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 3 guests