Search code examples
wcfwcf-binding

Forcing a WCF service to communicate with clients infinitely


I have a WCF service, and two WPF applications which acts as clients for service. I need the communication between clients and service to be infinite, even when those are not interacting(i.e. client is idle). Right now my service drops the connection after some time.

I have tried increasing reciveTimeout and sendTimeout (even tried setting it to "infinite") on my bindings but it didn't worked. If anyone can put some light on how different timeouts are used and what values i need to set for my case.

Any help will be of great value.

Thanks In Advance.


Solution

  • Instead of changing the timeout defaults you can make a Keep Alive background thread in WPF that will ping your WCF service every minute.