Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/bitcoin/network/net/socket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class BCT_API socket
const result_handler& handler) NOEXCEPT;

// connection
void handle_accept(const boost_code& ec,
void handle_accept(boost_code ec,
const result_handler& handler) NOEXCEPT;
void handle_connect(const boost_code& ec, const asio::endpoint& peer,
const result_handler& handler) NOEXCEPT;
Expand Down
4 changes: 2 additions & 2 deletions src/net/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,15 +581,15 @@ void socket::do_ws_event(ws::frame_type kind,
// ----------------------------------------------------------------------------
// These are invoked on strand upon failure, socket cancel, or completion.

void socket::handle_accept(const boost_code& ec,
void socket::handle_accept(boost_code ec,
const result_handler& handler) NOEXCEPT
{
// This is running in the acceptor (not socket) execution context.
// socket_ and authority_ are not guarded here, see comments on accept.
// address_ remains defaulted for inbound (accepted) connections.

if (!ec)
authority_ = { socket_.remote_endpoint() };
authority_ = { socket_.remote_endpoint(ec) };

if (error::asio_is_canceled(ec))
{
Expand Down
Loading