From 993606ede8dc3529cb26efee5aa3c7cde4632062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 1 Jul 2014 13:21:24 +0200 Subject: Explain that passing Req around leads to undefined behavior --- manual/cowboy_req.md | 4 ++++ 1 file changed, 4 insertions(+) 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 ----- -- cgit v1.2.3