[GH-ISSUE #1295] Handlers using CURL #533

Closed
opened 2026-03-04 02:15:47 +03:00 by kerem · 1 comment
Owner

Originally created by @aquaticpond on GitHub (Mar 4, 2019).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1295

On some networks IPv6 resolution fails and falls back to IPv4 but it takes 10+ seconds for this to happen and complete the request.

curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);

Telling CURL to resolve to IPv4 with the above option solves this issue. Unfortunately it might not be feasible to default to IPv4 for everything though...

Originally created by @aquaticpond on GitHub (Mar 4, 2019). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1295 On some networks IPv6 resolution fails and falls back to IPv4 but it takes 10+ seconds for this to happen and complete the request. `curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);` Telling CURL to resolve to IPv4 with the above option solves this issue. Unfortunately it might not be feasible to default to IPv4 for everything though...
kerem 2026-03-04 02:15:47 +03:00
  • closed this issue
  • added the
    Support
    label
Author
Owner

@Seldaek commented on GitHub (Jul 2, 2019):

That sounds like you should fix the network rather than the curl code :)

<!-- gh-comment-id:507685546 --> @Seldaek commented on GitHub (Jul 2, 2019): That sounds like you should fix the network rather than the curl code :)
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#533
No description provided.