Skip to content
Merged
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
6 changes: 6 additions & 0 deletions src/tcp_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ namespace ip {
post(m_io_service, aux::make_malloc(std::bind(std::move(m_connect_handler)
, boost::system::error_code(error::operation_aborted))));
m_connect_handler = nullptr;

// close() uses m_connect_handler as its sole signal for whether
// m_channel is an established connection vs. still routed to the
// acceptor; clear it here too, or a later close() call is fooled
// into treating this channel as established.
m_channel.reset();
}
}

Expand Down
Loading