[omniORB] TCP timeout delay when host is unreachable

Mgr. Daniel Pirkl pirkl at eldis.cz
Wed Sep 29 10:37:27 BST 2004


I think a hade similar problem a year ago. I needed to call remote object,
execution of some methods could take a long time (up to 10 minutes), but I
needed to know immediately, that the remote host is unreachable.

I didn't found any standart way, how to implement it, so I have writen a
small patch. When giop connectin is made using tcp protokol, the
tcpConnection object start to send ping requests to remote hosts. If
replay doesn't arrive for 10 seconds, connection is disconnected. It made
a lot of ping requests inside network, but it was working. I am sending
you the patch, maybe is should be usefull for you.

Daniel

-- 
Tato zprava byla prohledana na vyskyt viru
a nebezpecneho obsahu antivirovym systemem
MailScanner a zda se byt cista.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: omniORB-4.0.2-patch
Type: application/octet-stream
Size: 4922 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20040929/3e183bea/omniORB-4.0.obj


More information about the omniORB-list mailing list