aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-07-01 13:21:24 +0200
committerLoïc Hoguin <[email protected]>2014-07-01 13:21:24 +0200
commit993606ede8dc3529cb26efee5aa3c7cde4632062 (patch)
tree55963658d1cd8de004df03a76704634a836c5367
parent15da836d2ad34fcae36dd9e89f4ce3c754031a86 (diff)
downloadcowboy-993606ede8dc3529cb26efee5aa3c7cde4632062.tar.gz
cowboy-993606ede8dc3529cb26efee5aa3c7cde4632062.tar.bz2
cowboy-993606ede8dc3529cb26efee5aa3c7cde4632062.zip
Explain that passing Req around leads to undefined behavior
-rw-r--r--manual/cowboy_req.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/manual/cowboy_req.md b/manual/cowboy_req.md
index 7b3b199..00bfd64 100644
--- a/manual/cowboy_req.md
+++ b/manual/cowboy_req.md
@@ -23,6 +23,10 @@ All functions which perform an action should only be called once.
This includes reading the request body or replying. Cowboy will
generally throw an error on the second call.
+It is highly discouraged to pass the Req object to another process.
+Doing so and calling `cowboy_req` functions from it leads to
+undefined behavior.
+
Types
-----