![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: i have two part which communicate using tcpip Socket, and because i doN,t know how the second part is programmed, i can't send keep Alives, and wait for the ack. SO when a connection is broken, my application wait for 15 minutes or more to detects that th e sockets are down. i have adjusted the DROP_TIMER and PROBE_TIMER ucx parametres but i always have the problem. There is a long time that i try to fix this problem , but no more ideas. How i can decrease the timeout of closing socket after a broken conne ction ?. Thanks. The Answer is : Consider using SO_KEEPALIVE, using something like this: int one=1; setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof one); This option is also available via the sys$qio interface. On OpenVMS V7.1 and later, the OpenVMS Wizard would recommend using TCP/IP Services version V5.0A or (if available) later.
|