tags:

views:

2029

answers:

1

In WCF, what is the difference between Binding.RecieveTimeout and Binding.ReliableSession.InactivityTimeout?

+2  A: 

From http://blogs.msdn.com/drnick/archive/2007/06/26/session-lifetime-on-the-server.aspx

When using a reliable session, there are two different inactivity timers that must be satisfied to keep the connection alive. If either inactivity timer goes off, then the connection is killed. The first inactivity timer is on the reliable session and is called InactivityTimeout. This inactivity timer fires if no messages, either application or infrastructure, are received within the timeout period. An infrastructure message is a message that is generated for the purpose of one of the protocols in the channel stack, such as a keep alive or an acknowledgment, rather than containing application data. The second inactivity timer is on the service and uses the ReceiveTimeout setting of the binding. This inactivity timer fires if no application messages are received within the timeout period.

aogan
Even though you "copy pasted", +1 :)
sebastian