Skip to content
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

Fix app_offline detection for some OSes #52780

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Fix app_offline detection for some OSes #52780

merged 2 commits into from
Dec 14, 2023

Conversation

BrennanConroy
Copy link
Member

@BrennanConroy BrennanConroy commented Dec 13, 2023

Reverts part of #49696. It looks like calling WaitForMultipleObjects isn't officially supported on a HANDLE from CreateIoCompletionPort. See https://stackoverflow.com/questions/39602908/waitforsingleobject-on-a-completion-port for some discussion on this.

On Windows Server 2012 R2 it looks like ChangeNotificationThread ends up hanging on GetQueuedCompletionStatus because WaitForMultipleObjects doesn't work properly with m_hCompletionPort and shutdown was triggered which causes _lStopMonitorCalled to be set so we don't end up calling PostQueuedCompletionStatus which would unblock GetQueuedCompletionStatus.

Customer issues #52307 and #52539, and possibly #52525

@BrennanConroy BrennanConroy added feature-iis Includes: IIS, ANCM area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions labels Dec 13, 2023
@amcasey
Copy link
Member

amcasey commented Dec 13, 2023

Cross-linking #45066

Copy link
Member

@amcasey amcasey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😨

@adityamandaleeka
Copy link
Member

Thanks @BrennanConroy for the investigation. Looks good at first glance but I'll give it a closer review today.

@BrennanConroy BrennanConroy merged commit e8c8c43 into main Dec 14, 2023
26 checks passed
@BrennanConroy BrennanConroy deleted the brecon/offline branch December 14, 2023 00:16
@ghost ghost added this to the 9.0-preview1 milestone Dec 14, 2023
@BrennanConroy
Copy link
Member Author

/backport to release/8.0

Copy link
Contributor

Started backporting to release/8.0: https://github.com/dotnet/aspnetcore/actions/runs/7202681792

@talanc-stramit
Copy link

Will this fix make it into the next version of .NET 8?

@ghost
Copy link

ghost commented Dec 18, 2023

Hi @talanc-stramit. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

@BrennanConroy
Copy link
Member Author

BrennanConroy commented Dec 18, 2023

No, but it will make it into the February patch probably.

@bodenkers
Copy link

When will this be back ported for .net 8. We currently have aspnetcore 8.0.4 on our IIS servers and are still having this issue.

@adityamandaleeka
Copy link
Member

8.0.4 should already have this fix. Are you sure it's this issue? Are you running on Windows Server 2012 R2?

@bodenkers
Copy link

bodenkers commented May 16, 2024 via email

@bodenkers
Copy link

We are experiencing it on Microsoft Windows Server 2019 Standard. the bug in mention stated that it could be happening on newer OS as well

We are experiencing it on Microsoft Windows Server 2019 Standard. the bug
in mention stated that it could be happening on newer OS as well

@BrennanConroy
Copy link
Member Author

Have you tried the workaround? #52307 (comment)

File a new issue, this is a closed PR.

@bodenkers
Copy link

bodenkers commented May 20, 2024 via email

@bodenkers
Copy link

bodenkers commented May 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions feature-iis Includes: IIS, ANCM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants