From be3b1259b6a806c11a4ca378a0bad210b12e4182 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Tue, 16 Oct 2012 17:40:02 -0400 Subject: Make sendto() non-blocking --- src/network/network.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/network.cc b/src/network/network.cc index 782f78e..df78362 100644 --- a/src/network/network.cc +++ b/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( p.size() ) ) { -- cgit v1.2.3