]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/asio/example/cpp03/iostreams/http_client.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / asio / example / cpp03 / iostreams / http_client.cpp
index 29bd5b92466c183b600d30515d12b6367ca906f4..52842abfd7899766ddfa0b0b9ae395211c055644 100644 (file)
@@ -1,8 +1,8 @@
 //
-// sync_client.cpp
+// http_client.cpp
 // ~~~~~~~~~~~~~~~
 //
-// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
 //
 // Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -33,7 +33,7 @@ int main(int argc, char* argv[])
     // The entire sequence of I/O operations must complete within 60 seconds.
     // If an expiry occurs, the socket is automatically closed and the stream
     // becomes bad.
-    s.expires_from_now(boost::posix_time::seconds(60));
+    s.expires_after(boost::posix_time::seconds(60));
 
     // Establish a connection to the server.
     s.connect(argv[1], "http");