Procházet zdrojové kódy

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 před 10 roky
rodič
revize
1a680f00e0
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      test/ibrowse_test_server.erl

+ 2
- 2
test/ibrowse_test_server.erl Zobrazit soubor

@ -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) ->

Načítá se…
Zrušit
Uložit