diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-08 17:37:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-08 17:37:05 +0100 |
| commit | 0ae086a90ef262fed4e265df197fd62fcdfbccf7 (patch) | |
| tree | feac6b02738014602b4b171b9d6fa12dd71d59cb /src | |
| parent | 78c35c7b0bd82d9022974ac780760784651e50cc (diff) | |
Remove useless code and clarify comment.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/server_finder.cc | 7 |
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))); |
