[omniORB] question on behavior of client on server restart -
possible hang?
Duncan Grisby
duncan at grisby.org
Wed Aug 12 12:49:54 BST 2009
On Tuesday 11 August, Igor Lautar wrote:
[...]
> So this would have side-effect that connections could brake (more often) if
> network goes down for few seconds? As keep_alive would not reach server where
> case where this is not send, survives downtime?
It shouldn't drop a connection if the network is only down for a few
seconds. According to RFC 1122, section 4.2.3.6:
Keep-alive packets MUST only be sent when no data or acknowledgement
packets have been received for the connection within an interval.
This interval MUST be configurable and MUST default to no less than
two hours.
It is extremely important to remember that ACK segments that contain
no data are not reliably transmitted by TCP. Consequently, if a
keep-alive mechanism is implemented it MUST NOT interpret failure to
respond to any specific probe as a dead connection.
Note that the default time between keep-alives must be at least 2 hours,
and one failure shouldn't count as a dead connection.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list