开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜