src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/connection.hpp in passenger-6.0.7 vs src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/connection.hpp in passenger-6.0.8

- old
+ new

@@ -292,12 +292,12 @@ closed, unknown }; public: - explicit connection(bool p_is_server, std::string const & ua, alog_type& alog, - elog_type& elog, rng_type & rng) + explicit connection(bool p_is_server, std::string const & ua, const lib::shared_ptr<alog_type>& alog, + const lib::shared_ptr<elog_type>& elog, rng_type & rng) : transport_con_type(p_is_server, alog, elog) , m_handle_read_frame(lib::bind( &type::handle_read_frame, this, lib::placeholders::_1, @@ -327,11 +327,11 @@ , m_remote_close_code(close::status::abnormal_close) , m_is_http(false) , m_http_state(session::http_state::init) , m_was_clean(false) { - m_alog.write(log::alevel::devel,"connection constructor"); + m_alog->write(log::alevel::devel,"connection constructor"); } /// Get a shared pointer to this component ptr get_shared() { return lib::static_pointer_cast<type>(transport_con_type::get_shared()); @@ -1484,11 +1484,11 @@ /// Prints information about an arbitrary error code on the specified channel template <typename error_type> void log_err(log::level l, char const * msg, error_type const & ec) { std::stringstream s; s << msg << " error: " << ec << " (" << ec.message() << ")"; - m_elog.write(l, s.str()); + m_elog->write(l, s.str()); } // internal handler functions read_handler m_handle_read_frame; write_frame_handler m_write_frame_handler; @@ -1601,12 +1601,12 @@ // connection data that might not be necessary to keep around for the life // of the whole connection. std::vector<std::string> m_requested_subprotocols; bool const m_is_server; - alog_type& m_alog; - elog_type& m_elog; + const lib::shared_ptr<alog_type> m_alog; + const lib::shared_ptr<elog_type> m_elog; rng_type & m_rng; // Close state /// Close code that was sent on the wire by this endpoint @@ -1631,18 +1631,9 @@ /// A flag that gets set when the completion of an http connection is /// deferred until later. session::http_state::value m_http_state; bool m_was_clean; - - /// Whether or not this endpoint initiated the closing handshake. - bool m_closed_by_me; - - /// ??? - bool m_failed_by_me; - - /// Whether or not this endpoint initiated the drop of the TCP connection - bool m_dropped_by_me; }; } // namespace websocketpp #include <websocketpp/impl/connection_impl.hpp>