Skip to content

Using uWS.HttpRequest past its request handler return is forbidden (it is stack allocated). #328

Answered by ghost
zdm asked this question in Q&A
Discussion options

You must be logged in to vote

Using uWS.HttpRequest past its request handler return is forbidden (it is stack allocated).

This is a message for you to read. When you await anything, that's technically a return. So you cannot use the HttpRequest after this point, you have to copy out whatever you want to keep before you return or await.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@IonelLupu
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #328 on December 09, 2020 04:13.