avoid high cpu usage caused by incredibly low select timeout