I have an issue with the server not sending the request to the client. I've narrowed the problem to the code below :
solve_async = Process(target=sudoku.solve, args=(grid, persistent_grid)) solve_async.start() return HttpResponseRedirect(reverse('solver:solved', args=(persistent_grid.id,)))
As you can see, in this code I'm spawning a child process and right after (the child process don't block) a response is sent to the client. But from the client side, the response is not received. I can see that the browser is waiting for the response and finally timeout.
For information, the child process is working perfectly. I can tell because it updates record in the database.
There's no entry in the error log.
In the server logo there's
2020-05-22 11:48:24 Fri May 22 11:48:24 2020 - received message 0 from emperor 2020-05-22 11:48:24 SIGINT/SIGQUIT received...killing workers... 2020-05-22 11:48:26 worker 1 buried after 2 seconds 2020-05-22 11:48:26 goodbye to uWSGI. 2020-05-22 11:48:26 chdir(): No such file or directory [core/uwsgi.c line 1610] 2020-05-22 11:48:26 VACUUM: unix socket /var/sockets/anotherdeadpixel.pythonanywhere.com/socket removed
Any idea why the HttpResponseRedirect line of code is not executed by the server ?
Thanks for your help !