Moved select to socket_wrapper.