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

Work of supporting latest Mono #2519

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Work of supporting latest Mono #2519

wants to merge 20 commits into from

Conversation

Evengard
Copy link
Contributor

@Evengard Evengard commented Feb 12, 2023

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.

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.

1 participant