I have two threads:
Thread one is doing this:
1) URLConnection myCon = new URLConnection(url);
3) .. now it blocks for a long time
At this moment Thread two wanna cancel the connect!
Is there a way to close the connection (like you can
close a socket connection with the close() method) ?
I don't wanna use the Thread.stop() or Thread.interrupt()
method, because it doesn't make the situation better!
Any ideas ?