socket select timeout to avoid blocking - phase 3
build with -Os, without warning