Bug 826117 - Use settimeout() with connect() instead of select(). r=wlach