You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the us_loop_integrate() function to use uWS with my own event loop, but during the exit sequence us_loop_free() calls uv_run(). This is a surprising behaviour -- should we really be re-running the event loop during exit (when stuff has already largely been torn down), especially if its not your own event loop?
The text was updated successfully, but these errors were encountered:
I’ve looked at it a bit more, and what I would like to see is a us_loop_deintegrate(), or some such function. It should do the work done by the atexit, and disable the code in the atexit. This would allow your approach of doing tear down during atexit, while allowing program architectures that prefer to avoid atexit to still shut down cleanly.
I'm using the us_loop_integrate() function to use uWS with my own event loop, but during the exit sequence us_loop_free() calls uv_run(). This is a surprising behaviour -- should we really be re-running the event loop during exit (when stuff has already largely been torn down), especially if its not your own event loop?
The text was updated successfully, but these errors were encountered: