couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [10/50] ibrowse commit: updated refs/heads/upstream to b28542d
Date Mon, 22 Aug 2016 11:19:36 GMT
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.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/commit/1a680f00
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/tree/1a680f00
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/diff/1a680f00

Branch: refs/heads/upstream
Commit: 1a680f00e0c053cb81424e200f6657cdd0ad71ca
Parents: 247dd56
Author: benjaminplee <yardspoon@gmail.com>
Authored: Fri Nov 21 14:38:12 2014 +0000
Committer: benjaminplee <yardspoon@gmail.com>
Committed: Fri Nov 21 14:38:12 2014 +0000

----------------------------------------------------------------------
 test/ibrowse_test_server.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/blob/1a680f00/test/ibrowse_test_server.erl
----------------------------------------------------------------------
diff --git a/test/ibrowse_test_server.erl b/test/ibrowse_test_server.erl
index 1f5202f..dc0d7e2 100644
--- a/test/ibrowse_test_server.erl
+++ b/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) ->


Mime
View raw message