Browse Source

Explain that passing Req around leads to undefined behavior

Loïc Hoguin 10 years ago
parent
commit
993606ede8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      manual/cowboy_req.md

+ 4 - 0
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
 -----