packagist azjezz/psl 5.4.0
Crown 5.4.0

4 hours ago

PSL 5.4.0

TCP: Backlog Configuration and Batch Accept

TCP\listen() now accepts a backlog parameter (default 512) to configure the OS-level queue of pending connections. The listener also now drains the accept backlog in a loop instead of accepting one connection per event-loop tick, dramatically improving throughput under high connection rates.

use Psl\TCP;

$listener = TCP\listen('127.0.0.1', 8080, backlog: 4096);

New: Dict\{filter_nonnull_by, map_nonnull}, Vec\{filter_nonnull_by, map_nonnull}

New collection helpers for filtering and mapping with null-awareness.


Documentation: psl.carthage.software/ | TCP


New Contributors

Full Changelog: 5.3.0...5.4.0

Don't miss a new psl release

NewReleases is sending notifications on new releases.