| 313 | } |
| 314 | |
| 315 | void close() { |
| 316 | beast::error_code error; |
| 317 | if (stream_.socket().shutdown(tcp::socket::shutdown_send, error).failed()) { |
| 318 | LOG(ERROR) << "failed to close http socket: " << error.message(); |
| 319 | } |
| 320 | self_ = nullptr; |
| 321 | } |
| 322 | |
| 323 | private: |
| 324 | beast::tcp_stream stream_; |
no outgoing calls
no test coverage detected