Introduce DataBase,Asp.net,JavaScript,Xml,Html,Css,Sql,Php,ASP.NET Controls,AJAX,Tools,HTML,CSS,JavaScript,Open Source Project,WPF,.Net Framework,Linq
Top Recommended Hosting

Keeping a connection alive

by the3factory 3/23/2008 7:51:00 PM
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?

Related posts

Sign up for PayPal and start accepting credit card payments instantly.


Powered by BlogEngine.NET 1.2.0.0