File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ class connection
5959 virtual bool
6060 is_open () const noexcept = 0 ;
6161
62- virtual capy::io_task<>
63- shutdown () = 0 ;
62+ // virtual capy::io_task<>
63+ // shutdown() = 0;
6464
6565 virtual ~connection () = default ;
6666
Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ class buffer_connection final : public burl::detail::connection
5454 return true ;
5555 }
5656
57- capy::io_task<>
58- shutdown () override
59- {
60- co_return {};
61- }
57+ // capy::io_task<>
58+ // shutdown() override
59+ // {
60+ // co_return {};
61+ // }
6262
6363private:
6464 capy::io_task<std::size_t >
Original file line number Diff line number Diff line change @@ -87,12 +87,12 @@ class tcp_connection final : public connection
8787 return socket_.is_open ();
8888 }
8989
90- capy::io_task<>
91- shutdown () override
92- {
93- socket_.shutdown (corosio::shutdown_both);
94- co_return {};
95- }
90+ // capy::io_task<>
91+ // shutdown() override
92+ // {
93+ // socket_.shutdown(corosio::shutdown_both);
94+ // co_return {};
95+ // }
9696
9797private:
9898 capy::io_task<std::size_t >
@@ -132,11 +132,11 @@ class tls_connection final : public connection
132132 return socket_.is_open ();
133133 }
134134
135- capy::io_task<>
136- shutdown () override
137- {
138- return stream_.shutdown ();
139- }
135+ // capy::io_task<>
136+ // shutdown() override
137+ // {
138+ // return stream_.shutdown();
139+ // }
140140
141141private:
142142 capy::io_task<std::size_t >
@@ -169,12 +169,12 @@ class stream_connection final : public connection
169169 return open_;
170170 }
171171
172- capy::io_task<>
173- shutdown () override
174- {
175- open_ = false ;
176- co_return {};
177- }
172+ // capy::io_task<>
173+ // shutdown() override
174+ // {
175+ // open_ = false;
176+ // co_return {};
177+ // }
178178
179179private:
180180 capy::io_task<std::size_t >
Original file line number Diff line number Diff line change @@ -151,9 +151,9 @@ struct buffer_connection_test
151151 BOOST_TEST (conn.is_open ());
152152
153153 // shutdown completes without error and is a no-op.
154- auto [sec] = co_await conn.shutdown ();
155- BOOST_TEST (!sec);
156- BOOST_TEST (conn.is_open ());
154+ // auto [sec] = co_await conn.shutdown();
155+ // BOOST_TEST(!sec);
156+ // BOOST_TEST(conn.is_open());
157157 }());
158158 }
159159
You can’t perform that action at this time.
0 commit comments