×

Verifying and maintaining connection liveliness in a reliable messaging for web services environment

  • US 7,899,921 B2
  • Filed: 12/08/2004
  • Issued: 03/01/2011
  • Est. Priority Date: 12/08/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method implemented by an initiator computer system in a Web Services (WS) environment for maintaining connection liveliness with an acceptor computing system for a sequence session between endpoints, comprising the initiator computing system and the acceptor computing system, by utilizing Reliable Messaging protocol for WS (RM-WS protocol), the method comprising acts of:

  • establishing a sequence session, identified by a unique sequence identifier, at an application layer between two endpoint applications in accordance with a RM-WS protocol;

    identifying an inactivity timeout period for the sequence session, the inactivity timeout period having an upper limit of time that may pass without receiving a message for the sequence session prior to the initiator computing system abandoning or failing the sequence session;

    calculating a keep-alive expiration timeout based on the inactivity timeout period and which defines an interval of time that the initiator computing system will wait without detecting activity by the acceptor computing system during the inactivity timeout period and prior to beginning transmission of one or more keep-alive messages to the acceptor computing system;

    calculating a keep-alive time interval, the keep-alive interval defining an interval of time that is to occur prior to each successively transmitted keep-alive message after transmission of a first keep-alive message to the acceptor computing system within the inactivity timeout period;

    sending the first keep alive message upon expiration of the keep-alive expiration timeout;

    iteratively sending the one or more keep-alive messages to the acceptor computing system based on the calculated keep-alive time interval, and which said one or more keep-alive messages include the unique sequence identifier, until either;

    the inactivity timeout period has elapsed,until activity is detected from the acceptor, oruntil a maximum retry count is reached, which comprises a predetermined number of times the one or more keep-alive messages are to be sent during the inactivity timeout period; and

    upon receiving a message that includes the unique sequence identifier, prior to the upper limit of the inactivity timeout period being reached, resetting an inactivity timer for the inactivity timeout period such that the sequence session is kept alive and such that the upper limit of the inactivity timeout period is reset, wherein the inactivity timeout period is tunable at the application layer based on at least one of;

    latency issues,network reliability,on a per connection basis, ornegotiations between the initiator and the acceptor; and

    upon failing to receive any message that includes the unique sequence identifier prior to the upper limit of the inactivity timeout period being reached, the method further includes abandoning the sequence session.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×