On Fri Feb 16 17:46:56 2024 +0000, Paul Gofman wrote:
Maybe a bit more interesting thing in this direction would be to make the calling thread which is making server request process async queue itself always (one or another way, it should be technically possible), I think this would have a positive effect of not depending on the presence of threads in APC wait, but unfortunately that can only work if the async queuing thread is from the same process as the one which should process it. For the same process case that would solve the races though (and made this optimization more reliable by not depending on waiting in server_select threads).
"process async queue itself always": I mean without signal, directly upon returning from the server call.