Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dmitryvk
Copy link
Contributor

@dmitryvk dmitryvk commented Dec 18, 2018

Mono used to invoke the handler but not wait for it to finish.

Microsoft.Owin.Host.SystemWeb relies on async EndRequest event handler in order to manage Owin Context's lifecycle. Failure to await handler completion causes race conditions.

Fixes #12103

@dnfclas
Copy link

dnfclas commented Dec 18, 2018

CLA assistant check
All CLA requirements met.

@dmitryvk
Copy link
Contributor Author

@marek-safar
Copy link
Member

approve

@dmitryvk
Copy link
Contributor Author

Some tests are broken. Looking into it

@dmitryvk dmitryvk force-pushed the bugfix/12103-async-endrequest branch from e37da2b to 8a446dd Compare December 19, 2018 10:31
@dmitryvk
Copy link
Contributor Author

I still see some test failures but I'm not sure that they are related to this PR. E.g., some tests for System.Net failed, but tests for System.Web pass

Mono used to invoke the handler but not to wait for it to finish.

Microsoft.Owin.Host.SystemWeb relies on async EndRequest event handler in order to manage Owin Context's lifecycle. Failure to await handler completion causes race conditions.

This fixes mono#12103
@dmitryvk dmitryvk force-pushed the bugfix/12103-async-endrequest branch from 8a446dd to 9857891 Compare January 11, 2019 13:33
@dmitryvk
Copy link
Contributor Author

Rebased changes against current master.

@lewing
Copy link
Member

lewing commented Mar 14, 2019

@monojenkins build failed

@dmitryvk
Copy link
Contributor Author

Any news on this? We are using own patched version of Mono in production because of this.
If there are any issues with this patch, I'd be happy to do whatever is needed to fix this issue.

@wolfmanfx
Copy link

Hi,

Yes this really a must have to support OWIN - adding support for it would be great.

@steveisok
Copy link
Contributor

@marek-safar If we're going to merge #12619, then this PR can be closed since it's fixed there.

@marek-safar
Copy link
Member

I'd prefer landing #12619 instead

@steveisok
Copy link
Contributor

Since the other PR essentially supersedes this one, I'm going to close.

@steveisok steveisok closed this May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HttpApplication does not wait for completion of asynchronous EndRequest handler

6 participants