Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF - What is the difference between Binding.RecieveTimeout and Binding.ReliableSession.InactivityTimeout?

Tags:

wcf

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

like image 511
Codigo Espagueti Avatar asked Dec 03 '25 20:12

Codigo Espagueti


1 Answers

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.

like image 87
aogan Avatar answered Dec 07 '25 11:12

aogan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!