The actual IsClientConnection method may not work or be providing your with exactly what you are looking for. Based on the documentation, the IsClientConnected property returns false when the following conditions are true:
The connection to the client was terminated. This can occur if the Close method was invoked, or if the client stopped execution of the Web page or browsed to another page.
The HttpWorkerRequest object that is handling the request is null or the HttpWorkerRequest.IsClientConnected method returns false. If a custom HttpWorkerRequest object handles the request, then the HttpWorkerRequest.IsClientConnected method might be set
based on custom criteria. For example, the custom worker request might force a time-out after a period of time.
So basically, it is going to return true unless both of the above conditions are met (which may be a part of the issue that you are encountering). Is there any case that your connection may be timing out? How / Where are currently calling this above
method from?
All-Star
114593 Points
18503 Posts
MVP
Re: Response.IsClientConnected dont work correctily on iis 7.5
Jun 30, 2014 12:56 PM|Rion Williams|LINK
The actual IsClientConnection method may not work or be providing your with exactly what you are looking for. Based on the documentation, the IsClientConnected property returns false when the following conditions are true:
So basically, it is going to return true unless both of the above conditions are met (which may be a part of the issue that you are encountering). Is there any case that your connection may be timing out? How / Where are currently calling this above method from?