Ver a proveniência

Made test server less chatty while shutting down

Connections warned of badargs to ets:delete
when shutting the server down with open connections;
created noise while reviewing test results.
pull/123/head
benjaminplee há 10 anos
ascendente
cometimento
1a680f00e0
1 ficheiros alterados com 2 adições e 2 eliminações
  1. +2
    -2
      test/ibrowse_test_server.erl

+ 2
- 2
test/ibrowse_test_server.erl Ver ficheiro

@ -85,11 +85,11 @@ accept_loop(Sock, Sock_type) ->
end.
connection(Conn, Sock_type) ->
ets:insert(?CONN_PIPELINE_DEPTH, {self(), 0}),
catch ets:insert(?CONN_PIPELINE_DEPTH, {self(), 0}),
try
server_loop(Conn, Sock_type, #request{})
after
ets:delete(?CONN_PIPELINE_DEPTH, self())
catch ets:delete(?CONN_PIPELINE_DEPTH, self())
end.
set_controlling_process(Sock, tcp, Pid) ->

Carregando…
Cancelar
Guardar