Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdillonharvey committed Oct 10, 2023
1 parent ec52b78 commit c4aa008
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/endpoint.hpp
Expand Up @@ -29,10 +29,7 @@ struct endpoint_uri_pair_t
return local_type == endpoint_type_bind ? local : remote;
}

const bool clash () const
{
return local == remote;
}
const bool clash () const { return local == remote; }

std::string local, remote;
endpoint_type_t local_type;
Expand Down
8 changes: 4 additions & 4 deletions src/stream_engine_base.cpp
Expand Up @@ -295,10 +295,10 @@ bool zmq::stream_engine_base_t::in_event_internal ()
if (rc == -1) {
if (errno != EAGAIN) {
// In cases where the src/dst have the same IP and the dst uses an ephemeral port, reconnection
// eventually results in the src and dest IP and port clashing (google tcp self connection)
// While this is a protocol_error (you have the single zmq socket handshaking with itself)
// we do not want to to stop reconnection from happening
if(!_endpoint_uri_pair.clash()){
// eventually results in the src and dest IP and port clashing (google tcp self connection)
// While this is a protocol_error (you have the single zmq socket handshaking with itself)
// we do not want to to stop reconnection from happening
if(!_endpoint_uri_pair.clash ()){
error (protocol_error);
return false;
}
Expand Down

0 comments on commit c4aa008

Please sign in to comment.