Question:
Hello all,
Is there a way to keep a DuplexBinding connection alive? I have a small chat app where the client seems to lose connection after an extended period of inactivity. How can this be prevented?
Here is my current app.config file:
<system.serviceModel>
<client>
<endpoint name="test"
address="net.tcp://localhost:22222/chatroom"
binding="netTcpBinding"
bindingConfiguration="DuplexBinding"
contract="IChat" />
</client>
<bindings>
<netTcpBinding>
<binding name="DuplexBinding" sendTimeout="00:00:05" >
<reliableSession enabled="true" />
<security mode="None" />
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
Thanks for any help...
Answer1:
Are you using sessions at all? It could be your sessions timing out.
http://www.danrigsby.com - Dont forget to mark your threads when they are answered or helpful
Answer2:
How would I be able to figure that out?