How to properly close a client proxy (An existing connection was forcibly closed by the remote host)?

后端 未结 3 1637
一向
一向 2020-12-15 09:08

Please don\'t close as duplicate until you read the question to the end; I already googled for hours without success.


EDIT: Now I\'m convinced it\'s related to

3条回答
  •  一个人的身影
    2020-12-15 10:01

    I suspect your return command within the try block is causing execution to skip the finally block causing your connection to remain open until client shutdown causes the exception. Is this possible? Have you made sure that your finally block is executed?

提交回复
热议问题