capture IOError in send_request to avoid "SocketError: error(54, 'Connection reset by peer')" when the connection has been idle for some time
Merge pull request #127 from ArenaSource/master

SocketError: error(54, 'Connection reset by peer') after idle connection