On Nov 15, 2024, at 3:12 PM, Francis Augusto Medeiros-Logeay <r_f@med-lo.eu> wrote:
It could be, but when I tested concurrency, all I did was a
print («Will block now») While True: time.sleep(5) print («waiting»)
Just to check if another request would print «Will block now», which it never did. The only way I got that to happen was to fork into another thread before the print.
If your'e running in debug mode, it's single threaded. That explains it.
Maybe this isn’t the only way - it’s just the easiest way for me to do it as I’m not so familiar with other approaches. I need basically to:
- send a request to the RestAPI to ask if the user will have a push notification or if he’ll use TOTP - That info comes on a json
The server has a REST module which can do some json work...
I’ll see if I find out what could be blocking my threads.
Check if the server is running single-threaded. Alan DeKOk.