]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: update beast frontend for boost 1.66
authorCasey Bodley <cbodley@redhat.com>
Tue, 5 Dec 2017 19:43:06 +0000 (14:43 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 5 Jan 2018 19:55:16 +0000 (14:55 -0500)
Fixes: http://tracker.ceph.com/issues/22600
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_asio_client.cc
src/rgw/rgw_asio_frontend.cc

index 39040a2607f2b04b877058311ca94a4648e13c00..13476b6e14b89171ccf5ee73daf6024c927615e4 100644 (file)
@@ -171,7 +171,7 @@ size_t ClientIO::complete_header()
     sent += txbuf.sputn(timestr, strlen(timestr));
   }
 
-  if (parser.is_keep_alive()) {
+  if (parser.keep_alive()) {
     constexpr char CONN_KEEP_ALIVE[] = "Connection: Keep-Alive\r\n";
     sent += txbuf.sputn(CONN_KEEP_ALIVE, sizeof(CONN_KEEP_ALIVE) - 1);
   } else {
index cee0594679d01dba374b466628894dfad3977e9e..61e011c7c4b5f91e08a2acefff89730692ffde42 100644 (file)
@@ -64,7 +64,7 @@ namespace beast = boost::beast;
 
 class Connection {
   RGWProcessEnv& env;
-  boost::asio::strand strand;
+  boost::asio::io_service::strand strand;
   tcp::socket socket;
 
   // references are bound to callbacks for async operations. if a callback
@@ -169,7 +169,7 @@ class Connection {
     process_request(env.store, env.rest, &req, env.uri_prefix,
                     *env.auth_registry, &client, env.olog);
 
-    if (parser->is_keep_alive()) {
+    if (parser->keep_alive()) {
       // parse any unread bytes from the previous message (in case we replied
       // before reading the entire body) before reading the next
       discard_unread_message();