From 0ae086a90ef262fed4e265df197fd62fcdfbccf7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 8 Oct 2014 17:37:05 +0100 Subject: Remove useless code and clarify comment. --- src/lib/server_finder.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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))); -- cgit v1.2.3