Avatar for the aio-libs user
aio-libs
aiohttp
BlogDocsChangelog

Branches performance

Pull requests

Replace unintentional except BaseException with except Exception#12130
last run
44 minutes ago
Replace unintentional `except BaseException` with `except Exception` `BaseException` catches `SystemExit`, `KeyboardInterrupt`, and `GeneratorExit` which is almost always unintended in application code. This commit replaces three cases where `BaseException` was used to catch-and-handle (not catch-and-re-raise) exceptions, silently converting system-level exceptions into normal error handling paths: - `aiohttp/worker.py`: The gunicorn worker loop swallowed all exceptions including `KeyboardInterrupt` and `SystemExit` via `except BaseException: pass`, preventing clean shutdown signals. - `aiohttp/client_proto.py`: The HTTP data_received handler converted all exceptions (including `KeyboardInterrupt`) into `HttpProcessingError` via `set_exception()` without re-raising, silently masking system signals. - `aiohttp/http_parser.py`: The payload parser fed exceptions into the payload's exception handler without re-raising for most cases, again silently swallowing system-level exceptions. All other `except BaseException` occurrences in the codebase are intentional: they perform cleanup (closing transports, releasing connections) and then immediately re-raise, which is the correct pattern for resource management under `asyncio.CancelledError` and other system exceptions. Closes #2444
51 minutes ago
cff7782
dhruvildarji:fix/except-base-exception
CodSpeed Performance Gauge
0%
[PR #12125/f049588a backport][3.14] Block absolute paths in static files#12129
last run
18 hours ago
Block absolute paths in static files (#12125) (cherry picked from commit f049588a8ab5b6b6757677b539845c63698d61f7)
19 hours ago
1c6dfee
patchback/backports/3.14/f049588a8ab5b6b6757677b539845c63698d61f7/pr-12125
CodSpeed Performance Gauge
0%
Block absolute paths in static files (#12125) (cherry picked from commit f049588a8ab5b6b6757677b539845c63698d61f7)
19 hours ago
7bca2ce
patchback/backports/3.13/f049588a8ab5b6b6757677b539845c63698d61f7/pr-12125
CodSpeed Performance Gauge
0%
Fix access log timestamps ignoring daylight savings time (#12085) --------- Co-authored-by: nightcityblade <nightcityblade@gmail.com> Co-authored-by: Sam Bull <git@sambull.org>
2 days ago
718153b
nightcityblade:backport-3.14
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home Terms Privacy Docs