Commit d298157c9848d148c6ac47ec204ac2173582de57

io: bug fix
src/io.hpp
(2 / 2)
  
702702 typedef boost::function1<void, char *> input_handler;
703703 typedef boost::function1<void, char const *> output_handler;
704704
705 basic_socket(scheduler & io, scheduler::socket_id fd) : _io(io), _sock(fd)
705 basic_socket(scheduler & io, socket_id fd) : _io(io), _sock(fd)
706706 {
707707 BOOST_ASSERT(fd >= 0);
708708 int const rc( fcntl(fd, F_GETFL, 0) );
785785 }
786786 f(sock, &addr, len);
787787 }
788 if (errno != EWOULDBLOCK && errno == EAGAIN)
788 if (errno != EWOULDBLOCK && errno != EAGAIN)
789789 throw system_error(errno, "failed to accept() new connection");
790790 }
791791