Remove long-polling from implementation since Java URL does not issue a request without attempting to retrieve the response input stream, making it difficult to verify overlapping request-responses.
Automatically close URLConnection when both input and output streams are closed.