Commit Graph

27 Commits (4bf3d011042cd3e5dc1848175121d39f07b78aee)

Author SHA1 Message Date
David Wilson cecef992b0 issue #218: core: add Secret and Blob types. 6 years ago
David Wilson 8fc1eac6ae utils: combine MITOGEN_LOG_LEVEL and MITOGEN_LOG_IO.
Saves lots of readline fiddling.
6 years ago
David Wilson 6fb3a76e68 master: annotate LogForwarder messages.
mitogen/master.py:
    Annotate forwarded log entries with their original source, logger
    name, and message.

ansible:
    mark stderr in red with -vvv

    Tempting to make this appaer 100% of the time, but some crappy
    bashrcs may cause lots of junk to be printed.
6 years ago
David Wilson 7c88e4d013 Move _DEAD into header, autogenerate dead messages
This change blocks off 2 common scenarios where a race condition is
upgraded to a hang, when the library could internally do better.

* Since we don't know whether the receiver of a `reply_to` is expecting
  a raw or pickled message, and since in the case of a raw reply, there
  is no way to signal "dead" to the receiver, override the reply_to
  field to explicitly mark a message as dead using a special handle.

  This replaces the serialized _DEAD sentinel value with a slightly
  neater interface, in the form of the reserved IS_DEAD handle, and
  enables an important subsequent change: when a context cannot route a
  message, it can send a generic 'dead' reply back towards the message
  source, ensuring any sleeping thread is woken with ChannelError.

  The use of this field could potentially be extended later on if
  additional flags are needed, but for now this seems to suffice.

* Teach Router._invoke() to reply with a dead message when it receives a
  message for an invalid local handle.

* Teach Router._async_route() to reply with a dead message when it
  receives an unroutable message.
6 years ago
David Wilson 6958b8ff09 docs: More getting started. 6 years ago
David Wilson bbb0f1bbd8 issue #155: fix double-fork behaviour and test it this time. 6 years ago
David Wilson b48d63f33b docs: add to_sender() and update serialization notes 6 years ago
David Wilson 732a610246 docs: add beginnings of section on func decorators 6 years ago
David Wilson 91116810a1 ansible: delete utils.py and promote cast() to mitogen.utils 6 years ago
David Wilson 18eaf14dca ansible: migrate logging variables into utils. 6 years ago
Alex Willmer eb1ad66469 docs: Fix out of date get_data() snippets
As of adc8fe3aed Receiver objects do not
have a get_data() method and Receiver.get() does not unpickle the
message.
6 years ago
David Wilson 58102c8179 docs: waiting on multiple calls 6 years ago
David Wilson fb759f7c16 docs: move Broker docstrings into Sphinx. 6 years ago
David Wilson ac7cada323 docs: more getting started guide 6 years ago
David Wilson ffa063cc01 docs: annother barriage of cross-reference fixes. 6 years ago
David Wilson b3bd075d37 docs: getting started 6 years ago
David Wilson 792e789908 More. 6 years ago
David Wilson c15d227da4 docs: way more appropriate image 6 years ago
David Wilson b94e7b3678 docs: more getting started 6 years ago
David Wilson 709b38c36e docs: Getting started tidyups 6 years ago
David Wilson dcc45bc7de docs: Get started on Getting Started 6 years ago
David Wilson f1d82c7284 More API documentation. 6 years ago
David Wilson 0565784164 Package rename cleanup. 6 years ago
David Wilson abfa85d7da Remove set from permitted types. 6 years ago
David Wilson 092bbef0b3 Reorder table of contents. 6 years ago
David Wilson caa1fde4fb Add serialization rules section. 6 years ago
David Wilson e7ff6259a3 Initial commit. 6 years ago