summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2524 from xrmx/add-harikiri-uwsgi-reproHEADmasterRiccardo Magliocchetti2023-03-171-0/+1
|\ | | | | tests: add uwsgi call in harakiri.py
| * tests: add uwsgi call in harakiri.pyRiccardo Magliocchetti2023-03-171-0/+1
|/ | | | So that it's trivial to run.
* Merge pull request #2523 from xrmx/harakiri-graceful-masterRiccardo Magliocchetti2023-03-176-15/+83
|\ | | | | core: add new flags for harakiri configuration:
| * core: add new flags for harakiri configuration:Filipe Niero Felisbino2023-03-176-15/+83
|/ | | | | | | - harakiri-graceful-timeout additional timeout for the worker to attempt a graceful shutdown. The application can catch the termination signal and perform an "emergency shutdown" - harakiri-graceful-signal determines which signal should be used (default SIGTERM) - harakiri-graceful-queue-threshold only triggers a harakiri if/when the listen queue crosses a threshold. Harakiri continues to be checked until the conditions are met - Changes are backwards compatible when the flags are not present
* Merge pull request #2516 from niol/masterRiccardo Magliocchetti2023-01-101-0/+4
|\ | | | | fix build with PHP >= 8.2
| * fix build with PHP >= 8.2Alexandre Rossi2023-01-101-0/+4
|/ | | | | | from https://raw.githubusercontent.com/php/php-src/PHP-8.2/UPGRADING.INTERNALS: ======================== 5. SAPI changes ======================== * The signature of php_module_startup() has changed from int php_module_startup(sapi_module_struct *sf, zend_module_entry +*additional_modules, uint32_t num_additional_modules) to zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry +*additional_module) as only one additional module was ever provided.
* Merge pull request #2510 from nicoe/python3_stdout_errorsRiccardo Magliocchetti2022-11-231-1/+1
|\ | | | | plugins/python: Use "backslashreplace" on stderr initialization
| * plugins/python: Use "backslashreplace" on stderr initializationNicolas Evrard2022-11-171-1/+1
| | | | | | | | | | Failing to use this value will result in enconding errors when logging unicode characters to stderr
* | Merge pull request #2500 from xrmx/relase-processRiccardo Magliocchetti2022-11-231-0/+27
|\ \ | |/ |/| RELEASE: document the release process
| * RELEASE: document the release processRiccardo Magliocchetti2022-11-231-0/+27
|/
* Merge pull request #2498 from xrmx/force_sinatra_2Riccardo Magliocchetti2022-10-242-2/+2
|\ | | | | ci: force installing sinatra 2
| * ci: force installing sinatra 2Riccardo Magliocchetti2022-10-242-2/+2
|/ | | | | | Which still runs on ruby 2.5.0. Fix #2497
* Merge pull request #2496 from eleksir/fix_coroae_py2-ismRiccardo Magliocchetti2022-10-241-1/+1
|\ | | | | Use parentheses in print() statement.
| * Use parentheses in print() statement.eleksir2022-10-221-1/+1
|/ | | | | | In py3 print is not a keyword, it is function, so it must be called with parentheses. This fix compatible with py2 as it does not denies using print as print().
* Update READMERoberto De Ioris2022-10-071-1/+1
|
* Update READMERoberto De Ioris2022-10-071-0/+3
|
* Merge pull request #2487 from MRoci/parallel-ciRiccardo Magliocchetti2022-09-215-31/+191
|\ | | | | ci: refactor tests to be run in parallel
| * ci: refactor tests to be run in parallelMRoci2022-09-215-31/+191
|/ | | | | | | | | | | | | | | | starting from `tests/travis.sh` subdivide test suites into: * `tests/gh-python.sh` * `tests/gh-deadlocks.sh` * `tests/gh-rack.sh` that share common variables and functions from `tests/gh-shared.sh` refactor github test workflow to use a multidimensional matrix in order to run each test suite (unittest, python, deadlocks) on each supported python version and rack tests on each supported rack version. closes https://github.com/unbit/uwsgi/issues/2479 leave `tests/travis.sh` because it can be useful as is somewhere else.
* Merge pull request #2150 from ddowling/masterRiccardo Magliocchetti2022-09-191-0/+2
|\ | | | | Ensure '-lrt' is included on the link line after linking to python li…
| * Ensure '-lrt' is included on the link line after linking to python library. ↵Denis Dowling2020-04-151-0/+2
| | | | | | | | Python depends on clock_gettime() and other functions in librt. Nothing else in uwsgi has a dependency on librt so if this library is only specified early on the link line then the library is dropped by the linker.
* | Merge pull request #2485 from xrmx/bump-trove-classifiersRiccardo Magliocchetti2022-09-191-0/+2
|\ \ | | | | | | Bump trove classifiers up to 3.11
| * | Bump trove classifiers up to 3.11Riccardo Magliocchetti2022-09-191-0/+2
|/ /
* | Merge pull request #2459 from wpj-cz/php_81_appRiccardo Magliocchetti2022-08-291-0/+1
|\ \ | | | | | | PHP: Fix php-app for php81
| * | PHP: Fix php-app for php81Joe2022-07-111-0/+1
| | |
* | | Merge pull request #2458 from gavin-jeong/fix-segfaultRiccardo Magliocchetti2022-08-281-1/+1
|\ \ \ | | | | | | | | Fix segfault from GEVENT_SWITCH
| * | | Fix segfault from GEVENT_SWITCHgavin.jeong2022-07-111-1/+1
| |/ /
* | | Merge pull request #2455 from corwin-of-amber/fix-macos-clangRiccardo Magliocchetti2022-08-282-3/+6
|\ \ \ | | | | | | | | Fixed compilation issue on macOS + Clang.
| * | | Fixed compilation issue on macOS + Clang.Shachar Itzhaky2022-07-042-3/+6
| |/ / | | | | | | | | | Fixes #2446.
* | | Merge pull request #2464 from roehnan/masterRiccardo Magliocchetti2022-08-281-1/+1
|\ \ \ | | | | | | | | make dev version PEP-0440 compliant
| * | | make dev version PEP-0440 compliantjoshua.biagio2022-07-181-1/+1
| |/ /
* | | Merge pull request #2470 from xrmx/test-on-py311Riccardo Magliocchetti2022-08-281-2/+6
|\ \ \ | | | | | | | | ci: run smoke tests on python 3.11
| * | | ci: run smoke tests on python 3.11Riccardo Magliocchetti2022-08-281-2/+6
|/ / /
* | | Merge pull request #2476 from xrmx/no-deprecated-declarationsRiccardo Magliocchetti2022-08-281-0/+1
|\ \ \ | | | | | | | | uwsgiconfig: don't error on deprecated declarations
| * | | uwsgiconfig: don't error on deprecated declarationsRiccardo Magliocchetti2022-08-281-0/+1
|/ / / | | | | | | | | | | | | Get us some more time to handle all the deprecations (pthread, openssl 3, python 3.11) to keep things compiling.
* | | Merge pull request #2453 from vstinner/python311Riccardo Magliocchetti2022-07-303-6/+57
|\ \ \ | | | | | | | | Add Python 3.11 support
| * | | Add Python 3.11 supportVictor Stinner2022-06-303-6/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use PyFrame_GetCode(). * Add PyFrame_GetCode() for Python 3.8 and older. * Add UWSGI_PY311 macro: defined on Python 3.11 and newer. * struct uwsgi_python: "current_recursion_depth" becomes "current_recursion_remaining" and current_frame type becomes _PyCFrame** on Python 3.11. Related Python 3.11 changes: * https://docs.python.org/dev/whatsnew/3.11.html#id6 * The PyFrameObject structure became opaque. * PyThreadState.frame (PyFrameObject) became PyThreadState.cframe (_PyCFrame) in Python 3.11. * PyThreadState: recursion_depth was replaced with recursion_remaining + recursion_limit.
* | | | Merge pull request #2469 from xrmx/update-tested-python-versionsRiccardo Magliocchetti2022-07-301-6/+10
|\ \ \ \ | |_|/ / |/| | | ci: update python versions in smoke tests
| * | | ci: update python versions in smoke testsRiccardo Magliocchetti2022-07-301-6/+10
|/ / / | | | | | | | | | Drop python 3.5 and add 3.9 and 3.10
* | | Merge pull request #2445 from hugovk/masterRiccardo Magliocchetti2022-06-291-9/+1
|\ \ \ | | | | | | | | Use threading.current_thread, has existed since Python 2.6
| * | | Use threading.current_thread, has existed since Python 2.6Hugo van Kemenade2022-06-121-9/+1
| | | |
* | | | Merge pull request #2448 from PeterJCLaw/fix-2447-remove-os-systemRiccardo Magliocchetti2022-06-295-31/+35
|\ \ \ \ | |/ / / |/| | | Replace all os.system usage with subprocess.call
| * | | Modernise these simple git callsPeter Law2022-06-231-2/+2
| | | |
| * | | Replace all `os.system` usage with `subprocess.call`Peter Law2022-06-235-31/+35
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This aims to fix intermittent build failures on some platforms (most notably Debian Bullseye) which appear to be due to the use of `os.system` from background threads. The exact nature of the issue is unclear, however moving to `subprocess.call` appears to fix it. Fixes https://github.com/unbit/uwsgi/issues/2447. While there's more that could be done here to modernise these calls, this aims to be a minimal change which introduces subprocess without much intrusion.
* | | Merge pull request #2423 from apollo13/pep-3333-closeRiccardo Magliocchetti2022-04-102-15/+17
|\ \ \ | | | | | | | | plugins/python: Properly call `.close()` as mandated by WSGI specs.
| * | | Added a sleep to give uWSGI time to start (?)Florian Apolloner2022-04-041-0/+1
| | | |
| * | | plugins/python: Properly call `.close()` as mandated by WSGI specs.Florian Apolloner2022-04-041-15/+16
|/ / / | | | | | | | | | | | | | | | | | | uWSGI did not call `.close()` on objects returned by `wsgi.file_wrapper`. This resulted on `.close()` beeing called when the gc managed to clean up the object (which apparently did not happen with refcounting due to cyclic references) resulting in hard to debug errors.
* | | Update READMERoberto De Ioris2022-04-021-2/+2
| | |
* | | Merge pull request #2417 from majorgreys/test-deadlock-add-sleepRiccardo Magliocchetti2022-03-221-0/+1
|\ \ \ | | | | | | | | fix(tests/deadlock): sleep before checking uwsgi process
| * | | fix(tests/deadlock): sleep before checking uwsgi processTahir H. Butt2022-03-221-0/+1
|/ / /
* | | Merge pull request #2388 from majorgreys/fix-worker-deadlockRiccardo Magliocchetti2022-03-2114-7/+180
|\ \ \ | |/ / |/| | fix(python-plugin): update internal interpreter state immediately upon forking