Skip to content

[HttpClient] Warning: curl_multi_select(): timeout must be between 0 and 2147484 #59041

@dnllromao

Description

@dnllromao

Symfony version(s) affected

5.4.46

Description

The issue occurs after logging an error to Sentry (sentry/sentry-symfony v4.13.2). The problematic line is located in the Symfony\Component\HttpClient\Response\CurlResponse::select method at line 357 (symfony/http-client v5.4.46).

if (0 !== $selected = curl_multi_select($multi->handle, $timeout)) {

In this instance, the $timeout argument is set to a negative float value (-0.002079963684082).

After research the HttpClient component, it seems the $timeout argument passed to selectfunction should never be negative. This appears to be an unexpected behavior.

I would appreciate any guidance on identifying the root cause or a recommended solution to address this problem.

How to reproduce

I am unable to reproduce the issue, so I am providing the stack trace on additional context.

Possible Solution

No response

Additional Context

Stack Trace:
ErrorException: Warning: curl_multi_select(): timeout must be between 0 and 2147484
29 /vendor/symfony/http-client/Response/CurlResponse.php(357): Symfony\Component\HttpClient\Response\CurlResponse::select
28 /vendor/symfony/http-client/Response/TransportResponseTrait.php(305): Symfony\Component\HttpClient\Response\CurlResponse::stream
27 /vendor/symfony/http-client/Response/CommonResponseTrait.php(153): Symfony\Component\HttpClient\Response\CurlResponse::initialize
26 /vendor/symfony/http-client/Response/TransportResponseTrait.php(137): Symfony\Component\HttpClient\Response\CurlResponse::doDestruct
25 /vendor/symfony/http-client/Response/CurlResponse.php(245): Symfony\Component\HttpClient\Response\CurlResponse::__destruct
24 /vendor/sentry/sentry/src/Client.php(177): Sentry\Client::captureEvent
23 /vendor/sentry/sentry/src/State/Hub.php(155): Sentry\State\Hub::captureEvent
22 /vendor/sentry/sentry/src/State/HubAdapter.php(129): Sentry\State\HubAdapter::captureEvent
21 /vendor/sentry/sentry/src/Monolog/Handler.php(82): Sentry\Monolog\Handler::Sentry\Monolog{closure}
20 /vendor/sentry/sentry/src/State/Hub.php(96): Sentry\State\Hub::withScope
19 /vendor/sentry/sentry/src/State/HubAdapter.php(89): Sentry\State\HubAdapter::withScope
18 /vendor/sentry/sentry/src/Monolog/Handler.php(66): Sentry\Monolog\Handler::doWrite
17 /vendor/sentry/sentry/src/Monolog/CompatibilityProcessingHandlerTrait.php(76): Sentry\Monolog\Handler::write
16 /vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(48): Monolog\Handler\AbstractProcessingHandler::handle
15 /vendor/monolog/monolog/src/Monolog/Logger.php(379): Monolog\Logger::addRecord
14 /vendor/monolog/monolog/src/Monolog/Logger.php(626): Monolog\Logger::error
13 /vendor/oro/platform/src/Oro/Component/MessageQueue/Consumption/QueueConsumer.php(243): Oro\Component\MessageQueue\Consumption\QueueConsumer::onInterruptionByException
12 /vendor/oro/platform/src/Oro/Component/MessageQueue/Consumption/QueueConsumer.php(148): Oro\Component\MessageQueue\Consumption\QueueConsumer::consume
11 /vendor/oro/platform/src/Oro/Component/MessageQueue/Client/ConsumeMessagesCommand.php(92): Oro\Component\MessageQueue\Client\ConsumeMessagesCommand::consume
10 /vendor/oro/platform/src/Oro/Bundle/MessageQueueBundle/Command/ClientConsumeMessagesCommand.php(49): Oro\Bundle\MessageQueueBundle\Command\ClientConsumeMessagesCommand::consume
9 /vendor/oro/platform/src/Oro/Component/MessageQueue/Client/ConsumeMessagesCommand.php(84): Oro\Component\MessageQueue\Client\ConsumeMessagesCommand::execute
8 /vendor/symfony/console/Command/Command.php(298): Symfony\Component\Console\Command\Command::run
7 /vendor/symfony/console/Application.php(1058): Symfony\Component\Console\Application::doRunCommand
6 /vendor/symfony/framework-bundle/Console/Application.php(96): Symfony\Bundle\FrameworkBundle\Console\Application::doRunCommand
5 /vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application::doRun
4 /vendor/symfony/framework-bundle/Console/Application.php(82): Symfony\Bundle\FrameworkBundle\Console\Application::doRun
3 /vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application::run
2 /vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php(54): Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner::run
1 /vendor/autoload_runtime.php(43): require_once
0 /bin/console(16): null

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy