瀏覽代碼

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 10 年之前
父節點
當前提交
1a680f00e0
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      test/ibrowse_test_server.erl

+ 2
- 2
test/ibrowse_test_server.erl 查看文件

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

Loading…
取消
儲存