[PATCH 4/6 v2] server: Use correct timeout in select.