Merge lp:~marcustomlinson/unity-scopes-api/fix_two-way_invoke_hang into lp:unity-scopes-api/devel

Proposed by Marcus Tomlinson
Status: Merged
Approved by: Pete Woods
Approved revision: 470
Merged at revision: 454
Proposed branch: lp:~marcustomlinson/unity-scopes-api/fix_two-way_invoke_hang
Merge into: lp:unity-scopes-api/devel
Diff against target: 16 lines (+3/-3)
1 file modified
src/scopes/internal/zmq_middleware/ZmqMiddleware.cpp (+3/-3)
To merge this branch: bzr merge lp:~marcustomlinson/unity-scopes-api/fix_two-way_invoke_hang
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Pete Woods (community) Approve
Review via email: mp+231197@code.launchpad.net

Commit message

Upped two-way invoke threads to 3 as both rebinding and debug_mode requests could be invoked within a single two-way invocation.

To post a comment you must log in.
Revision history for this message
Pete Woods (pete-woods) wrote :

This fix works for me.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/scopes/internal/zmq_middleware/ZmqMiddleware.cpp'
2--- src/scopes/internal/zmq_middleware/ZmqMiddleware.cpp 2014-08-14 00:42:11 +0000
3+++ src/scopes/internal/zmq_middleware/ZmqMiddleware.cpp 2014-08-18 14:05:30 +0000
4@@ -198,9 +198,9 @@
5 {
6 lock_guard<mutex> lock(data_mutex_);
7 oneway_invoker_.reset(new ThreadPool(1)); // Oneway pool must have a single thread
8- // N.B. We absolutely MUST have AT LEAST 2 two-way invoke threads
9- // as rebinding is invoked within two-way invocations.
10- twoway_invokers_.reset(new ThreadPool(2)); // TODO: get pool size from config
11+ // N.B. We absolutely MUST have AT LEAST 3 two-way invoke threads as both rebinding
12+ // and debug_mode requests could be invoked within a single two-way invocation.
13+ twoway_invokers_.reset(new ThreadPool(3)); // TODO: get pool size from config
14 }
15 shutdown_flag = false;
16 state_ = Started;

Subscribers

People subscribed via source and target branches

to all changes: