Small timeouts on select() instead of instant timeout increase reliability of socket reads and writes.