stestagg/stb-tester — pull request #1 by stestagg (2013-05-02 11:25:33+00:00)
Title: This is a test to see what travis does with a pull request

I'd like to use IRNetBox to determine whether the irnetbox has frozen or not. Usually attempting to set up a TCP socket to a dead irnetbox will raise a "Connection refused" socket exception. However, I've also seen times when the TCP socket connection attempt completely hangs.

This commit adds a 10 second timeout _to the socket connection attempt only_. I do not want to keep the timeout applied because this would change how the script behave later on; it seems to rely on blocking reads from the socket.