I need to implement a long lasting TCP duplex connection for event notification. Client register for events and server informs about this events to all subscribers.
The problem is, the TCP connection closes after 10 minutes. I know about reliable session. close and inactivity timeouts.
What i need is to implement some kind of "always opened connection" between the client and the server. The client reconnects as soon as it notices the connection is lost. but it can be difficult to notice some connection loses while connected with TCP.
I was able to invent some kind of solution with long receive and inactivity timeouts. Client "pulse checks" the server in some short interval, if it's still online and connected using some kind of KeepAlive() method.
I would like to have the solution without having KeepAlive() method on my service contract.
Any ideas?
//Miro