Response.Flush() throws System.Web.HttpException

后端 未结 4 993
迷失自我
迷失自我 2021-02-05 21:31

I have a HttpHandler that I\'m using to handle certain images on a client\'s website. When I\'m outputting the image stream to the response object and call Flush occasionally an

4条回答
  •  [愿得一人]
    2021-02-05 22:17

    While I agree with Mitchel - there's little need to call flush as you're about to call End, if you're using this elsewhere, you could try calling Response.IsClientConnnected first.

    Gets a value indicating whether the client is still connected to the server.

提交回复
热议问题