Merge lp:~vanvugt/mir/fix-1226139 into lp:mir
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Daniel van Vugt | ||||
Proposed branch: | lp:~vanvugt/mir/fix-1226139 | ||||
Merge into: | lp:mir | ||||
Diff against target: |
72 lines (+44/-2) 3 files modified
src/server/frontend/socket_messenger.cpp (+9/-2) tests/unit-tests/frontend/CMakeLists.txt (+1/-0) tests/unit-tests/frontend/test_socket_messenger.cpp (+34/-0) |
||||
To merge this branch: | bzr merge lp:~vanvugt/mir/fix-1226139 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alan Griffiths | Needs Fixing | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Robert Ancell | Approve | ||
Robert Carr | Pending | ||
Review via email: mp+187649@code.launchpad.net |
This proposal supersedes a proposal from 2013-09-20.
Commit message
Stop asio::write from throwing exceptions (SIGPIPE). It will only do so
after we've closed the socket, at which point we don't really care.
(LP: #1226139)
Description of the change
I'm not convinced this is the right answer long term. Long term we should be ensuring that all messages are sent before the socket is closed. But that kind of race will take much longer to solve. And right now we need a quick fix to stop the server crashing on client disconnect. Particularly if this is one of the crashes holding up touch...
Unmerged revisions
- 1073. By Daniel van Vugt
-
Merge latest dev branch and resolve a conflict.
- 1072. By Daniel van Vugt
-
Stop asio::write from throwing exceptions (SIGPIPE). It will only do so
after we've closed the socket, at which point we don't really care.
(LP: #1226139)
+1 on the long term needs a better solution. It would be nice if at least we logged something to stderr so we know if this occurs though since a future bug might be hidden by this change. Otherwise looks good.