Commit Graph

273 Commits

Author SHA1 Message Date
David Wilson 22c9f82c46 Import Docker build script for integration tests 2017-09-17 17:30:48 +05:30
David Wilson bc437733e5 Working DockerMixin for tests. 2017-09-17 05:27:33 +05:30
David Wilson 36ad9d3f0f Fixup ansible_demo.py for recent Ansibles 2017-09-17 05:26:45 +05:30
David Wilson 1627164165 fix unbelievably dumb variable shadowing 2017-09-17 05:25:30 +05:30
David Wilson 6e3f0702a3 A few more mitogen.slave/master changes 2017-09-17 04:22:57 +05:30
David Wilson ce7a7eddb4 Mention git. 2017-09-17 02:32:52 +05:30
David Wilson d26c46ba7f ssh: Support disabling strict host key checking. 2017-09-16 22:11:12 +05:30
David Wilson bdc742d4db ssh: Support specifying the port too. 2017-09-16 21:55:37 +05:30
David Wilson 8f08aa4fc8 Tidy up test. 2017-09-16 20:00:57 +05:30
David Wilson 066b39d570 pickle: support Context(), use same unpickler everywhere.
* Support passing Context() objects in function calls and return values.
  Now the fakessh demo from the documentation index would work
  correctly.

* Since slaves can communicate with each other now, they should also use
  the same approach to unpickling as the master already used. Collapse
  away all the unpickle extension crap and hard-wire just the 3 types
  that support unpickling.
2017-09-16 19:57:16 +05:30
David Wilson ed90f3fa90 pickle: Prevent access to the _Dead and CallError constructors
This should be pretty much identical the same behaviour as before, but
the extra assertion makes me feel happier.
2017-09-16 18:08:42 +05:30
David Wilson ef86b68dcd Import random old test scripts into tests/ dir. 2017-09-16 15:36:08 +05:30
David Wilson 1888c5c660 Add some broken tests 2017-09-16 15:34:55 +05:30
David Wilson 4e51f516a6 Add call_function_test, fix various exception bugs. 2017-09-16 15:27:30 +05:30
David Wilson b4d4d8f041 Apply package rename to remaining checked in files. 2017-09-16 12:48:45 +05:30
David Wilson 10c0dca24c Apply package rename to tests 2017-09-16 12:45:25 +05:30
David Wilson 583b7b59e2 Tidy up CallError exception text. 2017-09-16 12:44:34 +05:30
David Wilson 9aec5a1ccf Invert the sense of mitogen.slave 2017-09-15 11:54:41 +05:30
David Wilson 84707866b9 A few more images. 2017-09-13 02:01:19 +05:30
David Wilson 446e956e8f Rename package. 2017-09-11 10:20:01 +05:30
David Wilson ea84961b9c Extra logging to make broken caching more obvious 2017-09-11 09:30:25 +05:30
David Wilson 2812d9210e Add extra edge 2017-09-10 13:08:55 +05:30
David Wilson 59e7b1956b Simplify edges 2017-09-10 12:53:42 +05:30
David Wilson b52a556abd Reorder. 2017-09-10 12:51:01 +05:30
David Wilson 8d9c7245ec Tidy example. 2017-09-10 12:50:21 +05:30
David Wilson 354c96c409 Missing arc in fakessh.graphml 2017-09-10 12:49:08 +05:30
David Wilson abbcd30fa1 fakessh: add nice graphml image 2017-09-10 12:45:28 +05:30
David Wilson b1d3e7cad7 fakessh: quiten logging 2017-09-10 12:18:24 +05:30
David Wilson 1bd510601e fakessh: rename API function to match index.rst. 2017-09-10 12:16:16 +05:30
David Wilson b22df44bf1 fakessh: fix shutdown ordering bugs. 2017-09-10 12:15:17 +05:30
David Wilson 9d17f5b625 Have slaves close their own CALL_FUNCTION channel on broker shutdown
Necessary when parent stream goes away -- nothing exists to wake up main
thread.
2017-09-10 12:14:23 +05:30
David Wilson 5d49281ede Crash if start_transmit/start_receive used on closed side. 2017-09-10 12:14:06 +05:30
David Wilson 168498198c fakessh: More (incomplete) work on graceful exit. 2017-09-09 23:21:16 +05:30
David Wilson 58a5af5be0 Fix SSH context naming. 2017-09-09 21:09:43 +05:30
David Wilson 6ddc40130d Prevent keep_alive() crash when readers is empty. 2017-09-09 20:45:58 +05:30
David Wilson e0400b174d Rename _route -> _async_route, have Stream call it directly. 2017-09-09 20:44:57 +05:30
David Wilson a1e080155b Rename on_thread to defer. 2017-09-09 20:44:19 +05:30
David Wilson 569d157449 Remove special case for Waker construction 2017-09-09 20:41:42 +05:30
David Wilson a1044d8a6e Tidy up docs 2017-09-09 20:27:01 +05:30
David Wilson 7634b4c31c Add ProcessMonitor class 2017-09-09 07:01:57 +05:30
David Wilson 78392962cb Copy context name to stream name if specified. 2017-09-09 02:15:26 +05:30
David Wilson 04bc582844 listen/fire fixes. 2017-09-09 02:15:17 +05:30
David Wilson ca3fdc3fa9 Support *args in fire() too. 2017-09-09 02:14:55 +05:30
David Wilson de91f9ef7a Get rid of HMAC use. 2017-09-09 01:59:26 +05:30
David Wilson 299d4a2e05 Teach Router.add_handler() to kill a handler on context disconnect
When a context's Stream is disconnected, now any reply_to handlers
waiting for that specific context will be cancelled, rather than hanging
until all pending handelrs are cancelled during Broker is torn down.

This is groundwork for a bunch of things, including moving connect() to
the Broker thread
2017-09-09 00:39:17 +05:30
David Wilson ffe86a882d remove redundant conncetion registration
It's not needed any more sense Router always routes unknown IDs towards
the parent.
2017-09-09 00:23:37 +05:30
David Wilson a11003862b Add warning to docs. 2017-09-09 00:21:05 +05:30
David Wilson acb6520ea2 Fix feature list link 2017-09-08 23:15:33 +05:30
David Wilson 8e2d691d2d Move issue lists into GitHub. 2017-09-08 23:08:42 +05:30
David Wilson e0ecfab5fc More bold, everyone loves drama 2017-09-07 17:58:51 +05:30