summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/server_finder.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/server_finder.cc b/src/lib/server_finder.cc
index 58ad61bf9..a082f3bab 100644
--- a/src/lib/server_finder.cc
+++ b/src/lib/server_finder.cc
@@ -111,10 +111,9 @@ try
tcp::socket socket (io_service);
acceptor.accept (socket);
- /* XXX: does this deadline work with synchronous reads? */
-
- boost::asio::deadline_timer deadline (io_service);
- deadline.expires_from_now (boost::posix_time::seconds (10));
+ /* XXX: these reads should have timeouts, otherwise we will stop finding servers
+ if one dies during this conversation
+ */
uint32_t length = 0;
boost::asio::read (socket, boost::asio::buffer (&length, sizeof (uint32_t)));