Merge lp:~pedronis/ubuntu-push/use-sentinel-not-close into lp:ubuntu-push/automatic
Proposed by
Samuele Pedroni
Status: | Merged |
---|---|
Approved by: | Samuele Pedroni |
Approved revision: | 128 |
Merged at revision: | 130 |
Proposed branch: | lp:~pedronis/ubuntu-push/use-sentinel-not-close |
Merge into: | lp:ubuntu-push/automatic |
Diff against target: |
69 lines (+13/-10) 4 files modified
server/broker/simple/simple.go (+1/-1) server/broker/testsuite/suite.go (+9/-6) server/session/session.go (+2/-2) server/session/session_test.go (+1/-1) |
To merge this branch: | bzr merge lp:~pedronis/ubuntu-push/use-sentinel-not-close |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John Lenton (community) | Approve | ||
Review via email: mp+216186@code.launchpad.net |
Commit message
use a sentinel of nil instead of close on the session channel to terminate the session, because we use exchanges from two goroutines, so in corner we can race with feedPending and get send on closed channel
Description of the change
use a sentinel of nil instead of close on the session channel to terminate the session, because we use exchanges from two goroutine, so in corner we can race with feedPending and get send on closed channel
To post a comment you must log in.