Remove useless code and clarify comment.
authorCarl Hetherington <cth@carlh.net>
Wed, 8 Oct 2014 16:37:05 +0000 (17:37 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 8 Oct 2014 16:37:05 +0000 (17:37 +0100)
src/lib/server_finder.cc

index 58ad61bf9fa963120282a2756f2ad0ff61c8fd36..a082f3babf939d6a0e240433d97db1bf43e0feb4 100644 (file)
@@ -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)));