-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTPServerConnection::onServerStopped does not halt poll #3985
Comments
I tried a couple of changes but the only way I found rigth now is to change
|
An alternative way to handle that is to do this |
I think that this function |
@lovelycheep I think the best solution is to do
|
This is likely addressed by this fix But, generally speaking, code that is reproducing the issue is the best way to report and get it fixed - create a test case that fails send a pull. |
it doesn't
|
I managed to work the PostQueuedCompletionStatus working, so no problem, I already fix my code, if you think is not the correct way to handle it, never mind |
@aleks-f, are you planning to fix this problem? |
@vm2mv the solution proposed here was segfaulting when I tried it. Generally speaking, "here's a fix from my heavily tweaked poco code" is not an efficient way to get the issues fixed. If you have a problem and want it fixed quick, send a pull request to devel branch, let's see if CI goes green with it and then we'll be in a much better place to fix it. /cc @matejk |
When you call httpServer->stoppAll(true) we end up in
HTTPServerConnection::onServerStopped -> with abortConnection true
if the http connection is in keepalive waiting for
socket().poll(_keepAliveTimeout, Socket::SELECT_READ)
on windows you are waiting for epoll_wait that call GetQueuedCompletionStatusEx
the .close() done in onServerStopped is not enough to exit without waiting for keepalive timeout occur
The text was updated successfully, but these errors were encountered: