A DESCRIPTION OF THE PROBLEM :
The documentation for HttpURLConnection.disconnect() is not clear as to when it should be called or what the effects are.
For example, does disconnect need to be called in face of IOException from getInputStream or getErrorInputStream?
If it is not called, does that lead to abandoned open sockets?
Does calling it affect the http keep alive connection pool?
FREQUENCY :
ALWAYS
The documentation for HttpURLConnection.disconnect() is not clear as to when it should be called or what the effects are.
For example, does disconnect need to be called in face of IOException from getInputStream or getErrorInputStream?
If it is not called, does that lead to abandoned open sockets?
Does calling it affect the http keep alive connection pool?
FREQUENCY :
ALWAYS