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:32 UTC
[13/50] git commit: Include accumulator in timeout response,
BugzID 11432
Include accumulator in timeout response, BugzID 11432
Project: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/commit/c81297d6
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/tree/c81297d6
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/diff/c81297d6
Branch: refs/heads/import
Commit: c81297d606fc42e14d74be23b750029a00a0e106
Parents: f463444
Author: Robert Dionne <bo...@cloudant.com>
Authored: Tue Dec 21 14:08:43 2010 -0500
Committer: Adam Kocoloski <ad...@cloudant.com>
Committed: Tue Dec 21 14:46:25 2010 -0500
----------------------------------------------------------------------
src/rexi_utils.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-rexi/blob/c81297d6/src/rexi_utils.erl
----------------------------------------------------------------------
diff --git a/src/rexi_utils.erl b/src/rexi_utils.erl
index abee74f..bb2a4c1 100644
--- a/src/rexi_utils.erl
+++ b/src/rexi_utils.erl
@@ -29,7 +29,7 @@ process_mailbox(RefList, Keypos, Fun, Acc0, TimeoutRef, PerMsgTO) ->
process_message(RefList, Keypos, Fun, Acc0, TimeoutRef, PerMsgTO) ->
receive
{timeout, TimeoutRef} ->
- timeout;
+ {timeout, Acc0};
{Ref, Msg} ->
case lists:keyfind(Ref, Keypos, RefList) of
false ->
@@ -49,5 +49,5 @@ process_message(RefList, Keypos, Fun, Acc0, TimeoutRef, PerMsgTO) ->
io:format("rexi_DOWN ~p ~p", [ServerPid, Reason]),
Fun(Msg, nil, Acc0)
after PerMsgTO ->
- timeout
+ {timeout, Acc0}
end.