开发者

How do you find what class is keeping a network connection open?

开发者 https://www.devze.com 2022-12-24 17:29 出处:网络
I\'m accessing a database in steps, and making sure that I dispose of all my DbConn开发者_如何学运维ection objects & related when I\'ve done with them; however, when all the network stuff is done

I'm accessing a database in steps, and making sure that I dispose of all my DbConn开发者_如何学运维ection objects & related when I've done with them; however, when all the network stuff is done & should all be closed I still find open network connections from the app on netstat. How do I find out what class instance is keeping these connections open?


Even though you are calling the Close method on your connection, the physical connection doesn't necessarily get closed due to connection pooling.

0

精彩评论

暂无评论...
验证码 换一张
取 消