Why would context be NULL when the response is written asynchrnously #1745
-
Hello Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
The library is single-threaded. If you want to do anything from another thread you must go via Loop::defer which is like io_context->post in boost |
Beta Was this translation helpful? Give feedback.
-
I am calling defer to send the response. |
Beta Was this translation helpful? Give feedback.
-
Sounds like you have other issues then. You need to start using AddressSanitizer and ThreadSanitizer to get down to the problem because this report doesn't provide anything of use for me. Build WITH_ASAN=1 and fix your problems |
Beta Was this translation helpful? Give feedback.
The library is single-threaded. If you want to do anything from another thread you must go via Loop::defer which is like io_context->post in boost