Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

read timeout not working after given period

 
Ponnusamy Gov
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I am connecting other server using URLConnection and I am having 5 seconds of connection/read timeout. But my server not throwing exception after 5 secs. Here i smy piece of code:


what is the problem in this code?

Thanks in advance,

Pons
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic