[GH-ISSUE #1313] Share CURL connection in LogglyHandler #544

Closed
opened 2026-03-04 02:15:52 +03:00 by kerem · 0 comments
Owner

Originally created by @b3nl on GitHub (Apr 9, 2019).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1313

The LogglyHandler seems to be very slow, one reason could be, that every log entry opens a new curl connection. An easy optimization would be to share the curl connection for every requests to counter i.e. a tcp slowstart (https://www.maxcdn.com/one/visual-glossary/tcp-slow-start/?fbclid=IwAR2aDgazXaH1RQPwlPuA9nQKg4ZVysGIBpBomphI7_s9fNvTba-XHbCjlKE), instead of creating a new connection for every request.

(An example: http://technosophos.com/2012/06/18/connection-sharing-curl-php-how-re-use-http-connections-knock-70-rest-network-time.html)

Originally created by @b3nl on GitHub (Apr 9, 2019). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1313 The LogglyHandler seems to be very slow, one reason could be, that every log entry opens a new curl connection. An easy optimization would be to share the curl connection for every requests to counter i.e. a tcp slowstart (https://www.maxcdn.com/one/visual-glossary/tcp-slow-start/?fbclid=IwAR2aDgazXaH1RQPwlPuA9nQKg4ZVysGIBpBomphI7_s9fNvTba-XHbCjlKE), instead of creating a new connection for every request. (An example: http://technosophos.com/2012/06/18/connection-sharing-curl-php-how-re-use-http-connections-knock-70-rest-network-time.html)
kerem closed this issue 2026-03-04 02:15:52 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#544
No description provided.