Permalink
Browse files

Make sendto() non-blocking

  • Loading branch information...
1 parent fffbf17 commit be3b1259b6a806c11a4ca378a0bad210b12e4182 @keithw keithw committed Oct 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/network/network.cc
View
2 src/network/network.cc
@@ -352,7 +352,7 @@ void Connection::send( string s )
string p = px.tostring( &session );
- ssize_t bytes_sent = sendto( sock(), p.data(), p.size(), 0,
+ ssize_t bytes_sent = sendto( sock(), p.data(), p.size(), MSG_DONTWAIT,
(sockaddr *)&remote_addr, sizeof( remote_addr ) );
if ( bytes_sent == static_cast<ssize_t>( p.size() ) ) {

0 comments on commit be3b125

Please sign in to comment.