浏览代码

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

正在加载...
取消
保存