@SilentKiller but, if I set it as 0 then it will continue indefinitely. Isn't that better than not having an image at all/having to handle an exception?
@SilentKiller I have set connection timeout, which will cancel connection, if no connection is established within given time limit, but, by not using read timeout, once the connection is established, it'll keep downloading stream, until it is not completely downloaded. That's why, I am thinking of leaving it out
@rene code won't run that many time, at-most only 4 simultanously opened sockets. Users not getting image because of their slow internet connection and then giving negative feedback is bigger problem
Ok, now that I finally am motivated to play some WAG, the design for JavaBot is suddenly clear to me, and I'm going back to coding! See you all in a few!