Adding a read timeout to http connection to fix no i/o exceptions on some situations

If the connectivity falls while getting the input stream, connection keeps waiting to infinite by default. 
If the connectivity then restores in quite small time, the input stream retrieving goes on, but, if it stays down for some minutes, no input stream is retrieved and no io exception is thrown.
Setting a read timeout to the connection solves this issue.