Fixed timeouts in fake socket so they don't waste CPU time anymore.

Pull back into main.