PAGI::Server 0.002007 unifies HTTP/1.1 and HTTP/2 under a single contract
PAGI::Server 0.002007 is the most significant release of the Perl async web server framework to date, centered on normalizing behavior across HTTP/1.1 and HTTP/2 transports. The release makes event validation mandatory and always-on, deprecating the previous opt-in validate_events flag, so malformed or out-of-sequence events now consistently fail rather than being silently ignored. Error reporting has been standardized, with socket errors now distinguished by type — such as read_error, write_error, or idle_timeout — instead of all appearing as generic client disconnections. WebSocket and response lifecycle handling has been unified across both transports, ensuring incomplete responses trigger proper abnormal closure and disconnect events fire exactly once. The release ships with 920 tests across 133 files, and benchmarking showed no performance regression from unconditional validation, with a dedicated performance-focused update already in progress.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in