-
Notifications
You must be signed in to change notification settings - Fork 692
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
Work of supporting latest Mono #2519
Open
Evengard
wants to merge
20
commits into
unbit:master
Choose a base branch
from
Evengard:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…o making the request synchronous * HttpRuntime.ProcessRequest may be asynchronous
…s per Mono source code
Up to latest
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
This is some patches I wrote over the years for supporting Mono. I'm running a pretty big ASP.NET WebForms website under Mono and uWSGI (with theese patches) over several years, and this was all the work I had to do to make it purr like a kitten.
Theese are mostly threading and signaling issues fixing. Mono is quite invasive in how it operates, so taking care of it is tricky. I hope this won't break anything else.
One notable change is that because of how Mono operates (suspending on signals - and in turn suspending the polls), the polling mechanism was broken, with the poll() API call returning EINTR - so I had to wrap it into uwsgi_poll() to handle the EINTR and keep polling.
Another change was the dynamic loading of the uwsgi.dll into the target application without the need to put that uwsgi.dll into the GAC.
Finally, because of some changes in recent Mono versions (starting with the 6.0 I think), we need to link against stdc++ for it to work. Refer to: mono/mono#19628, pythonnet/pythonnet#939 (comment)
This is now working with Mono 6.12 without too much troubles. I hope I didn't break anything else.