abersheeran / a2wsgi

Convert WSGI app to ASGI app or ASGI app to WSGI app.
Apache License 2.0
226 stars 20 forks source link

Preserve execution context when running code in ThreadPool #31

Closed RobbeSneyders closed 1 year ago

RobbeSneyders commented 1 year ago

Currently contextvars from the ASGI context are not preserved into the WSGI context, which can lead to issues with certain middleware.

abersheeran commented 1 year ago

Sorry for the lateness, I have been off for the last few days due to COVID-19.

RobbeSneyders commented 1 year ago

No worries, was not expecting a response over Christmas anyway. Hope you feel better!

RobbeSneyders commented 1 year ago

@abersheeran could this be released? We'd like to remove the monkeypatch we have right now in connexion.

abersheeran commented 1 year ago

@abersheeran could this be released? We'd like to remove the monkeypatch we have right now in connexion.

https://pypi.org/project/a2wsgi/1.7.0/ Thanks for your contribution, this PR is now released in 1.7.