I'm trying to give the user the ability to cancel a long running http connection. The "standard" advice is to close the http Connection. This works on the emulator by causing an IOException. But on the the device (7650, 6100) it seems to do nothing.
My code is ...
try {
deBug(6,"kill commsHc"); // http connection
commsThread.pollHc.close();
}catch (Exception ex) {
deBug(3,"npe closing pollHc");
}
try {
deBug(6,"kill commsOut"); // output data stream
commsThread.pollOut.close();
}catch (Exception ex) {
deBug(3,"npe closing pollOut");
}
try {
deBug(6,"kill commsIn"); //input datastream
commsThread.pollIn.close();
}catch (Exception ex) {
deBug(3,"npe closing pollIn");
}
Any ideas ?

Reply With Quote

