Re: WebRequest.Timeout bugs?
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 08/23/04
- Next message: Peter Foot [MVP]: "Re: SP3 Beta & GAC"
- Previous message: Alex Feinman [MVP]: "Re: EXCEPTION : Importing DLL from eVC with double type parameter"
- In reply to: David D Webb: "Re: WebRequest.Timeout bugs?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Aug 2004 17:14:35 +0100
David D Webb <spivey@nospam.post.com> wrote:
> I've found that if the server accepts the request, then sends back some
> data, but never completes the response, the timeout MAY not trigger
> properly. You may need to switch to asynchronous requests for tighter
> control over the process.
Oh joy :(
Given that this only happens in very occasional situations (without the
connection itself going away, which I'll test but which I suspect is
enough to trigger the web request to complete with an error) I might
just detect it with my own timer which then triggers a message box
telling the user that the app will restart. Not pleasant, but of course
I'm hoping this will never happen in practice.
Next thing to look up is how to kill the process when there are hung
threads. Time to look on opennetcf.org...
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: Peter Foot [MVP]: "Re: SP3 Beta & GAC"
- Previous message: Alex Feinman [MVP]: "Re: EXCEPTION : Importing DLL from eVC with double type parameter"
- In reply to: David D Webb: "Re: WebRequest.Timeout bugs?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|