From: Casey Bodley Date: Tue, 5 Dec 2017 19:43:06 +0000 (-0500) Subject: rgw: update beast frontend for boost 1.66 X-Git-Tag: v13.0.2~640^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a66a6449296d39e57724fa733ac3069fecfdcdaa;p=ceph.git rgw: update beast frontend for boost 1.66 Fixes: http://tracker.ceph.com/issues/22600 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_asio_client.cc b/src/rgw/rgw_asio_client.cc index 39040a2607f..13476b6e14b 100644 --- a/src/rgw/rgw_asio_client.cc +++ b/src/rgw/rgw_asio_client.cc @@ -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 { diff --git a/src/rgw/rgw_asio_frontend.cc b/src/rgw/rgw_asio_frontend.cc index cee0594679d..61e011c7c4b 100644 --- a/src/rgw/rgw_asio_frontend.cc +++ b/src/rgw/rgw_asio_frontend.cc @@ -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();