Bug 824816: use socket.settimeout instead of the asyncore madness; r=mcote