简体   繁体   中英

keep net.tcp active in IIS

I've wrote a web application that is also listening to a net tcp port. the client of this web application is connecting via a plain tcp connection and everything is working great but the issue is that the IIS is stopping my site after some inactive time.

The issue is that the web application is initializing the tcp connection and any new connection is coming directly to the TCP connection without being hosted by the site.

I'm not sure how this should be solved.

found exactly the post that nailed it!

https://weblog.west-wind.com/posts/2013/oct/02/use-iis-application-initialization-for-keeping-aspnet-apps-alive

in general it specify that the application pool should be set to always running and the site should host the service at the pre load event that should be configured and implemented.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM