~kdub/+junk/split-out-old-semantics

Viewing all changes in revision 3250.

  • Committer: Tarmac
  • Author(s): Kevin DuBois, Kevin
  • Date: 2016-01-19 22:36:06 UTC
  • mfrom: (3057.7.43 vault-disconnect)
  • Revision ID: tarmac-20160119223606-5k4ouuchaql5kype
Have the new buffer semantics code break its outstanding promises when it is notified of a disconnect, and handle destruction due to server disconnects gracefully. Typically, a waiting buffer request will have its promise broken, and result in the same disconnect error code being passed out to the client.

Also change it so that the MirConnection is the item that owns the streams/surface resources, and the rpc code just has a weak_ptr to the streams (so it can distribute incoming buffers to them).

Approved by PS Jenkins bot, Alan Griffiths, Chris Halse Rogers, Alexandros Frantzis.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: