HttpWebRequest GetRequestStream doesn't abort

A

a_newcomb

I have an application which polls and connects to a webserver on a
background thread. When the application is supposed to exit, I call
abort on the HttpWebRequest object. I have observed that when the PDT
has no network connections ( i.e. configured for dhcp on the wireless
interface, and the wireless settings aren't configured ), and the
HttpWebRequest is blocking on GetRequestStream, abort doesn't throw an
exception and the HttpWebRequest continues to block. I have also tried
setting the timeout, and GetRequestStream doesn't seem to obey the
timeout either, I can't get the call to GetRequestStream to stop. It
appears to hang, but as soon as any changes to the network connections
are made, it immediately responds with timed out or aborted. Any help
would be greatly appreciated. I can't reproduce this on the emulator,
only with an actual handheld.

thanks,
-a.n.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top