diff options
author | Aldo Cortesi <aldo@corte.si> | 2018-05-08 14:53:56 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 14:53:56 +1200 |
commit | 8a682d3532ec071f20f4ba0f4700fbcdb7921699 (patch) | |
tree | cc437a95786c34200340e43e39c145f0c5ea5d25 /examples/addons/events.py | |
parent | 7ec9c5524f64bbceaf52b58696c8c9342a4887dd (diff) | |
parent | 717fbaa99076545d11f554187759005dce1aa67b (diff) | |
download | mitmproxy-8a682d3532ec071f20f4ba0f4700fbcdb7921699.tar.gz mitmproxy-8a682d3532ec071f20f4ba0f4700fbcdb7921699.tar.bz2 mitmproxy-8a682d3532ec071f20f4ba0f4700fbcdb7921699.zip |
Merge pull request #3105 from cortesi/opts
Add deferred options, tweak benchmarks, document done event
Diffstat (limited to 'examples/addons/events.py')
-rw-r--r-- | examples/addons/events.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/addons/events.py b/examples/addons/events.py index cd714ba0..f83c8f11 100644 --- a/examples/addons/events.py +++ b/examples/addons/events.py @@ -142,8 +142,12 @@ class Events: def done(self): """ - Called when the addon shuts down, either by being removed from the - mitmproxy instance, or when mitmproxy itself shuts down. + Called when the addon shuts down, either by being removed from + the mitmproxy instance, or when mitmproxy itself shuts down. On + shutdown, this event is called after the event loop is + terminated, guaranteeing that it will be the final event an addon + sees. Note that log handlers are shut down at this point, so + calls to log functions will produce no output. """ def load(self, entry: mitmproxy.addonmanager.Loader): |