Accepted way to prevent “The remote host closed the connection” exception

后端 未结 3 1318
一个人的身影
一个人的身影 2020-12-20 15:25

I\'m constantly getting the following exception which is caused by a user initiating a download and it consequently failing (or being cancelled):

3条回答
  •  难免孤独
    2020-12-20 15:44

    From a practical perspective, there is nothing wrong with cancelling a download by virtue of a dead computer or a killed web session, therefore catching remote host closed exceptions is perfectly acceptable.

提交回复
热议问题