David Wilson
a8928b8e05
Remove completely pointless _update_stream lock.
8 years ago
David Wilson
9b4183ddc4
Fix another race.
...
on_transmit() buffer mutation must be linearized with enqueue() buffer
mutation.
8 years ago
David Wilson
0e38d1f3e3
Remove needless long prefix.
8 years ago
David Wilson
ac2a52587b
s/wait/join/
8 years ago
David Wilson
54b0a0aed7
Gracefully handle callback crashes.
8 years ago
David Wilson
2703e444ef
Module importer fixes.
...
* Use TLS to track whether importer is currently running. Avoids
needing to maintain an ignore stack.
* Print more debugging around cases where Importer skips a module.
* If a module is part of a package, import the package and examine its
__loader__. If we are not the loader, refuse to load it.
8 years ago
David Wilson
e422dedab8
Replace private lock with global importer lock.
8 years ago
David Wilson
f88b0a11e9
Python 2.4 fixes.
8 years ago
David Wilson
1bc8681cb4
More doc updates.
8 years ago
David Wilson
6a01ae03e3
Replace SHUTDOWN with Channel.send(_DEAD)
8 years ago
David Wilson
da4e457247
More docs, move call/call_with_deadline to econtext.master.
8 years ago
David Wilson
c607831561
SlaveModuleImporter->Importer, enable intersphinx, finish howitworks.rst.
8 years ago
David Wilson
737d095ffc
More docs.
8 years ago
David Wilson
63ee222406
Many docs updates.
8 years ago
David Wilson
8ba5fbf27f
Get rid of CorruptMessageError.
8 years ago
David Wilson
73c418ef4b
Rename ContextError -> Error.
8 years ago
David Wilson
052c96d7ee
Allow importing master's __main__.
8 years ago
David Wilson
8afa1327fb
Move wait() to correct location.
8 years ago
David Wilson
dd03183022
Remove needless setup work.
8 years ago
David Wilson
ce27058bdf
Initial intro doc.
8 years ago
David Wilson
d457c20d87
Naming/docstring tidyups.
8 years ago
David Wilson
d2fa9ba2aa
Tidy.
8 years ago
David Wilson
cc18ab5e28
Tidy up event names and docstrings.
8 years ago
David Wilson
663eb01518
Docstring fixes.
8 years ago
David Wilson
d6d13ee506
Rationalize _fixup_package(), fix _setup_master() name.
8 years ago
David Wilson
0e58a48611
Fix method naming everywhere.
8 years ago
David Wilson
4b11023558
flake8
8 years ago
David Wilson
6f1b6df0f9
Don't leak slave's main IO streams.
8 years ago
David Wilson
70c2032bb2
Another hackish graceful shutdown method.
8 years ago
David Wilson
4e5add97e5
Seemingly robust graceful shutdown.
8 years ago
David Wilson
98f5cdc9fc
Tweak timeotu.
8 years ago
David Wilson
9a8fc5e167
Another attempt at graceful shutdown.
8 years ago
David Wilson
4947fb2c40
Rename PutReply for log readability.
8 years ago
David Wilson
397275087b
Fix name.
8 years ago
David Wilson
f4fa69075e
Remove unused signal.signal().
8 years ago
David Wilson
14b0b0d008
Remove unused ReadMore().
8 years ago
David Wilson
fa0beffac2
Fix stdout reopen when stdout is a socket.
8 years ago
David Wilson
625bec9db5
Remove wait= from Finalize(), main() try/except.
8 years ago
David Wilson
d8b6aa8902
Beginnings of graceful shutdown.
8 years ago
David Wilson
8a081a103f
Python 2.4 open() vs. file().
8 years ago
David Wilson
82a31cfb7a
Tidy up _ReceiveOne() logic.
8 years ago
David Wilson
f93839c318
Fix variable name.
8 years ago
David Wilson
d4875fdec7
Fix obvious importer bug.
8 years ago
David Wilson
bca3a65157
Use set_cloexec() everywhere.
8 years ago
David Wilson
6bedfe1934
Fix input length check error.
8 years ago
David Wilson
eeecf0f984
Simplify module loader (master already checked in)
8 years ago
David Wilson
1d4e63947f
Remove finalize_on_disconnect.
8 years ago
David Wilson
054e74c952
Remove ancient stuff.
8 years ago
David Wilson
c6b0bdf12e
Try harder to avoid roundtrips for missing modules.
8 years ago
David Wilson
ae3316b985
Split into core and master modules.
8 years ago
David Wilson
dc231847a0
Add absent package cache.
8 years ago
David Wilson
5775f9791c
Fix package imports.
8 years ago
David Wilson
27a1c9b182
Better default remote context name.
8 years ago
David Wilson
0b0663e21b
flake8
8 years ago
David Wilson
34595dd00f
Don't infinite loop on short reads.
8 years ago
David Wilson
98da046f81
Remove various bits of debug junk.
8 years ago
David Wilson
aeb953738a
Fix reception of multiple frames in one read().
8 years ago
David Wilson
29f38d578c
Replace GetStream/SetStream with Disconnect()
8 years ago
David Wilson
e042bfa954
Fix CallError when no traceback is active.
8 years ago
David Wilson
0b0e828c04
Fixes/improvements
...
Get rid of syslog.
Get rid of section comments.
Move IOLOG to separate logger to avoid infinite loop.
Change function docstring style.
Delete log Formatter.
Implement LogHandler to forward logs to parent.
Delete Pickle(), simplify Unpickle().
Have slave Finalize() when parent disconnects.
Delete AddStream().
8 years ago
David Wilson
9e2b1d24be
Fix memory leak.
8 years ago
David Wilson
b9e4dd62e9
Fix _UpdateStream race.
8 years ago
David Wilson
da77cb5870
Fixes
...
CallError rather than trying to preserve exceptions.
Dead sentinel value instead of killed everywhere.
Simplify Channel.
MasterModuleResponder error response.
Simplify Unpickle().
Simplify reprs everywhere.
AllowClass() instead of AllowModule().
Get rid of needless property().
Split ExternalContextMain up into class.
econtext.utils module.
8 years ago
David Wilson
cd9b93dd17
Turn into a package.
8 years ago