0

I have a TCP socket programming code which runs in WebApi 2.0 , I created a socket pool which has collection of connected sockets to Remote host.. I have also implemented a polling mechanism with Remote TCP host

When I run it from my workstation ( PC ) via Visual Studio , Socket pool is always open and Polling continues with no issues

But when I host it in Server 2012 in IIS, it stops exactly after an hour. I don't know how to start debugging or how to check the differences in behavior. Any help is very much appreciated.

Thanks

John M. Wright
  • 4,477
  • 1
  • 43
  • 61
Watson Ferror
  • 21
  • 1
  • 5

1 Answers1

0

It sounds like the IIS App Pool may be getting recycled (thus dropping your connections) for some reason. Take a look at this page for a number of potential things too look for: https://blogs.msdn.microsoft.com/johan/2007/05/16/common-reasons-why-your-application-pool-may-unexpectedly-recycle/

John M. Wright
  • 4,477
  • 1
  • 43
  • 61
  • Thanks for looking into this , just checked and found that App pool in IIS 8 is set to 29 hours of auto recycling .. :( – Watson Ferror May 25 '17 at 07:20