Merge lp:~free.ekanayaka/landscape-client/dont-reuse-connectors into lp:~landscape/landscape-client/trunk
Proposed by
Free Ekanayaka
Status: | Merged |
---|---|
Approved by: | Kevin McDermott |
Approved revision: | 284 |
Merge reported by: | Free Ekanayaka |
Merged at revision: | not available |
Proposed branch: | lp:~free.ekanayaka/landscape-client/dont-reuse-connectors |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: |
138 lines (+50/-11) 3 files modified
landscape/manager/tests/test_usermanager.py (+35/-0) landscape/manager/usermanager.py (+9/-6) landscape/monitor/usermonitor.py (+6/-5) |
To merge this branch: | bzr merge lp:~free.ekanayaka/landscape-client/dont-reuse-connectors |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kevin McDermott (community) | Approve | ||
Jamu Kakar (community) | Approve | ||
Review via email: mp+33366@code.launchpad.net |
Description of the change
The problem was that the connector object was being reused, meaning multiple connect() calls at the same time. This branch makes the UserManager and UserMonitor use one connector object per connection.
To post a comment you must log in.
[1]
def _message_ dispatch( self, message):
+ user_monitor_ connector = RemoteUserMonit orConnector( reactor, self.registry. config)
+ self.registry.
The leading blank line here isn't necessary. Also, would you mind
adding a docstring to this message, please?
Looks good, +1!