aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2016-05-12 15:37:37 +0200
committerSiri Hansen <[email protected]>2016-05-20 09:40:56 +0200
commit705011b8a223630d9800de9bd4d5cfd0b5986879 (patch)
treed3c99fa053f995a5aa37fd3b3c6e43e830a6af25
parent4aceb606b06df67fc7a98d8dc2b841cf444d670c (diff)
downloadotp-705011b8a223630d9800de9bd4d5cfd0b5986879.tar.gz
otp-705011b8a223630d9800de9bd4d5cfd0b5986879.tar.bz2
otp-705011b8a223630d9800de9bd4d5cfd0b5986879.zip
[runtime_tools] Don't trace the trace client port
When using an IP trace client, turn of all trace flags on the client port to avoid massive overload. Note that this is only a protection on client start - it is currently not possible to protect the port against trace flags set at a later point in time.
-rw-r--r--lib/runtime_tools/src/dbg.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/runtime_tools/src/dbg.erl b/lib/runtime_tools/src/dbg.erl
index bca600cc07..c0d4665bda 100644
--- a/lib/runtime_tools/src/dbg.erl
+++ b/lib/runtime_tools/src/dbg.erl
@@ -1313,6 +1313,9 @@ tc_loop(Other, _Handler, _HData) ->
gen_reader(ip, {Host, Portno}) ->
case gen_tcp:connect(Host, Portno, [{active, false}, binary]) of
{ok, Sock} ->
+ %% Just in case this is on the traced node,
+ %% make sure the port is not traced.
+ p(Sock,clear),
mk_reader(fun ip_read/2, Sock);
Error ->
exit(Error)