0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-27 23:03:37 -05:00
caddy/modules
Harish Shan 9782ea3400 caddyhttp: Use sync.Pool to reduce lengthReader allocations (#5848)
* Use sync.Pool to reduce lengthReader allocations

Signed-off-by: Harish Shan <140232061+perhapsmaple@users.noreply.github.com>

* Add defer putLengthReader to prevent leak

Signed-off-by: Harish Shan <140232061+perhapsmaple@users.noreply.github.com>

* Cleanup in putLengthReader

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

---------

Signed-off-by: Harish Shan <140232061+perhapsmaple@users.noreply.github.com>
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-12-07 13:26:21 -07:00
..
caddyevents ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
caddyhttp caddyhttp: Use sync.Pool to reduce lengthReader allocations (#5848) 2023-12-07 13:26:21 -07:00
caddypki ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
caddytls tls: Add X25519Kyber768Draft00 PQ "curve" behind build tag (#5852) 2023-10-11 13:45:37 -06:00
filestorage ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
logging logging: query filter for array of strings (#5779) 2023-08-29 22:59:43 +00:00
metrics ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
standard events: Implement event system (#4912) 2022-08-31 15:01:30 -06:00