aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/scripting
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-07-04 17:44:52 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-07-04 17:44:52 +0200
commit08476e988f7adab4ac6b75d1456e08ad9258aea9 (patch)
tree9363dbdec3ae076b6cd11bc0e7faa378aa9c82a6 /doc-src/scripting
parent99605653593eb13aa0746e70b43f480fbfc67bf2 (diff)
downloadmitmproxy-08476e988f7adab4ac6b75d1456e08ad9258aea9.tar.gz
mitmproxy-08476e988f7adab4ac6b75d1456e08ad9258aea9.tar.bz2
mitmproxy-08476e988f7adab4ac6b75d1456e08ad9258aea9.zip
clarify docs
Diffstat (limited to 'doc-src/scripting')
-rw-r--r--doc-src/scripting/inlinescripts.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc-src/scripting/inlinescripts.html b/doc-src/scripting/inlinescripts.html
index f5de7482..7cd6af25 100644
--- a/doc-src/scripting/inlinescripts.html
+++ b/doc-src/scripting/inlinescripts.html
@@ -145,8 +145,9 @@ You can view the API documentation using pydoc (which is installed with Python b
## Running scripts in parallel
-We have a single flow primitive, so when a script is handling something, other requests block.
-While that's a very desirable behaviour under some circumstances, scripts can be run threaded by using the <code>libmproxy.script.concurrent</code> decorator.
+We have a single flow primitive, so when a script is blocking, other requests are not processed.
+While that's usually a very desirable behaviour, blocking scripts can be run threaded by using the <code>libmproxy.script.concurrent</code> decorator.
+If your script does not block, you should avoid the overhead of the decorator.
$!example("examples/nonblocking.py")!$