I am trying to make a WCF service that uses callbacks for a client. I would like the channel to be open while there is a connection (Internet, network), and either the client or the channel obviously did not close the channel.
To open the channel (even without activity), I found reliable sessions that WCF supports. I see that using reliable sessions, there are two timers that need to be considered: Binding.ReceiveTimeout and ReliableSession.InactivityTimeout .
After searching the Internet, I still can't figure out exactly how the two work together. I know that if one of two times, the connection goes into an error state.
My first question is: what exactly happens when trusted sessions are allowed?
My second question: Here , why does msdn say the following?
Since the connection is disconnected if the inactivity timer is triggered, increasing InactivityTimeout when it is larger than ReceiveTimeout has no effect. The default value for both of these timeouts is 10 minutes, so you always need to increment both of them in order to make a difference when using a reliable session.
source share