http_client.hpp (f23b729676559f539790580930b1ff3b0c05805b) | http_client.hpp (b00dcc27587267e18d3abdee82f1ed7b39744d02) |
---|---|
1/* 2// Copyright (c) 2020 Intel Corporation 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 --- 66 unchanged lines hidden (view full) --- 75 { 76 return; 77 } 78 state = ConnState::connectInProgress; 79 80 BMCWEB_LOG_DEBUG << "Trying to connect to: " << host << ":" << port; 81 // Set a timeout on the operation 82 conn.expires_after(std::chrono::seconds(30)); | 1/* 2// Copyright (c) 2020 Intel Corporation 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 --- 66 unchanged lines hidden (view full) --- 75 { 76 return; 77 } 78 state = ConnState::connectInProgress; 79 80 BMCWEB_LOG_DEBUG << "Trying to connect to: " << host << ":" << port; 81 // Set a timeout on the operation 82 conn.expires_after(std::chrono::seconds(30)); |
83 |
|
83 conn.async_connect(endpoint, [self(shared_from_this())]( 84 const boost::beast::error_code& ec, 85 const boost::asio::ip::tcp::resolver:: 86 results_type::endpoint_type& ep) { 87 if (ec) 88 { 89 BMCWEB_LOG_ERROR << "Connect " << ep 90 << " failed: " << ec.message(); --- 266 unchanged lines hidden --- | 84 conn.async_connect(endpoint, [self(shared_from_this())]( 85 const boost::beast::error_code& ec, 86 const boost::asio::ip::tcp::resolver:: 87 results_type::endpoint_type& ep) { 88 if (ec) 89 { 90 BMCWEB_LOG_ERROR << "Connect " << ep 91 << " failed: " << ec.message(); --- 266 unchanged lines hidden --- |