set non-blocking socket
test without pthread