Socket conneection and socket read timeout

Set a configurable socket timeout in every socket connection and socket read operation