This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ok, Tracer} = dbg:tracer(port, dbg:trace_port(file, {"/tmp/trace", wrap, atom_to_list(node()), 50000000, 12})). | |
dbg:p(<0.3628.0>, ['receive', 'send', set_on_link]). | |
dbg:stop_clear(). | |
%% dbg:ctp(). | |
%% dbg:ctpe('receive'). | |
%% dbg:ctpe('send'). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RC = fun | |
Receiver({Max, Max}, Fd, SchedFlag) -> | |
io:format("count reached the max~n", []), | |
stop; | |
Receiver({Counter, Max}, Fd, SchedFlag) -> | |
receive | |
stop -> | |
io:format("stop tracing~n", []), | |
ok; | |
{trace, _, call, {erlang, port_command, [Port, _Payload, _Opts]}} -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/emqx_auth_ldap.erl b/src/emqx_auth_ldap.erl | |
index 1476a87..5333b35 100644 | |
--- a/src/emqx_auth_ldap.erl | |
+++ b/src/emqx_auth_ldap.erl | |
@@ -37,7 +37,7 @@ register_metrics() -> | |
check(ClientInfo = #{username := Username, password := Password}, AuthResult, | |
State = #{password_attr := PasswdAttr}) -> | |
- CheckResult = case lookup_user(Username, State) of | |
+ CheckResult = case lookup_user(Username, Password, State) of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rabbitmqctl eval '{ok, Q} = rabbit_amqqueue:lookup(rabbit_misc:r(<<"/">>, queue, <<"rmq-two-test-queue">>)), rabbit_amqqueue:delete_crashed_internal(Q, <<"rmq-internal">>).' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
levels = {} | |
prev_level = 1 | |
local function visit_section(level) | |
if level < prev_level then | |
for i = level + 1, #levels do | |
levels[i] = nil | |
end | |
end | |
prev_level = level |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trace_receiver() -> | |
receive | |
stop -> | |
?LOG_INFO(?LC, "stop tracing", []), | |
ok; | |
Msg -> | |
?LOG_INFO(?LC, "message received", []), | |
?LOG_INFO(?LC, "~p", [Msg]), | |
trace_receiver() | |
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(io_test). | |
-export([main/0]). | |
main() -> | |
CTProvider = providers:create([{name, ct}, | |
{module, rebar_prv_common_test}, | |
{deps, []}, | |
{bare, true}, | |
{example, "rebar3 ct"}, |
NewerOlder