Skip to content

Commit

Permalink
YTSATS-1457: More fixes on per-ip debug for non ssl (apache#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinrich authored and GitHub Enterprise committed Jan 9, 2018
1 parent c759f64 commit bc2e609
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion iocore/net/P_UnixNetVConnection.h
Expand Up @@ -322,7 +322,6 @@ TS_INLINE void
UnixNetVConnection::set_remote_addr()
{
ats_ip_copy(&remote_addr, &con.addr);
this->control_flags.set_flag(ContFlags::DEBUG_OVERRIDE, diags->test_override_ip(remote_addr));
}

TS_INLINE void
Expand Down
3 changes: 3 additions & 0 deletions iocore/net/UnixNetAccept.cc
Expand Up @@ -89,6 +89,7 @@ net_accept(NetAccept *na, void *ep, bool blockable)
vc->action_ = *na->action_;
vc->set_is_transparent(na->opt.f_inbound_transparent);
vc->set_context(NET_VCONNECTION_IN);
vc->control_flags.set_flag(ContFlags::DEBUG_OVERRIDE, diags->test_override_ip(con.addr));
SET_CONTINUATION_HANDLER(vc, (NetVConnHandler)&UnixNetVConnection::acceptEvent);

if (e->ethread->is_event_type(na->opt.etype))
Expand Down Expand Up @@ -279,6 +280,7 @@ NetAccept::do_blocking_accept(EThread *t)
vc->options.packet_tos = opt.packet_tos;
vc->options.ip_family = opt.ip_family;
vc->apply_options();
vc->control_flags.set_flag(ContFlags::DEBUG_OVERRIDE, diags->test_override_ip(con.addr));
vc->set_context(NET_VCONNECTION_IN);
vc->accept_object = this;
SET_CONTINUATION_HANDLER(vc, (NetVConnHandler)&UnixNetVConnection::acceptEvent);
Expand Down Expand Up @@ -424,6 +426,7 @@ NetAccept::acceptFastEvent(int event, void *ep)
vc->options.packet_tos = opt.packet_tos;
vc->options.ip_family = opt.ip_family;
vc->apply_options();
vc->control_flags.set_flag(ContFlags::DEBUG_OVERRIDE, diags->test_override_ip(con.addr));
vc->set_context(NET_VCONNECTION_IN);
SET_CONTINUATION_HANDLER(vc, (NetVConnHandler)&UnixNetVConnection::mainEvent);

Expand Down

0 comments on commit bc2e609

Please sign in to comment.