You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/01/17 23:00:34 UTC

[15/50] git commit: Ignore unknown cast messages

Ignore unknown cast messages

This server needs to be bulletproof.

BugzID: 11762


Project: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/commit/3389d4ad
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/tree/3389d4ad
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/diff/3389d4ad

Branch: refs/heads/import
Commit: 3389d4ad812a09c5daf143338bb9c4b5509a5922
Parents: 6e73a4d
Author: Adam Kocoloski <ad...@cloudant.com>
Authored: Mon Jan 31 15:08:13 2011 -0500
Committer: Adam Kocoloski <ad...@cloudant.com>
Committed: Mon Jan 31 15:08:13 2011 -0500

----------------------------------------------------------------------
 src/rexi_server.erl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-rexi/blob/3389d4ad/src/rexi_server.erl
----------------------------------------------------------------------
diff --git a/src/rexi_server.erl b/src/rexi_server.erl
index 0f2e799..fff2558 100644
--- a/src/rexi_server.erl
+++ b/src/rexi_server.erl
@@ -74,7 +74,11 @@ handle_cast({kill, FromRef}, #st{workers=Workers} = St) ->
         {noreply, St#st{workers = remove_worker(KeyRef, Workers)}};
     false ->
         {noreply, St}
-    end.
+    end;
+
+handle_cast(_, St) ->
+    error_logger:error_report({?MODULE, ignored_cast}),
+    {noreply, St}.
 
 handle_info({'DOWN', Ref, process, _, normal}, #st{workers=Workers} = St) ->
     {noreply, St#st{workers = remove_worker(Ref, Workers)}};