• Post Reply Bookmark Topic Watch Topic
  • New Topic

URLConenction getInputStream() blocked  RSS feed

 
Shashi Kanta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I have seen that most of the work arounds given to come out of this problem is to use threads.
I tried, but not able to interrupt the main thread.
Here is a snippet of my code.

How can this be implemented in the side thread? Or is there a different solution altogether so that URLConnection.getInputStream() does not get blocked?
Thanks,
-Shashi
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!