poll checks if there is data to read -> connection doesn't hang on recv