• Resolved Dekadinious

    (@dekadinious)


    It seems that it is not possible to set ‘connect_timeout’ in http_request_args? Can anyone educate me if ‘timeout’ overrides the ‘connect_timeout’?

    I am filtering a plugin that makes blocking requests with a timeout of 60 seconds. I am setting the timeout to 1 second to avoid the plugin blocking page rendering. But in situations where the plugins struggles to even connect, am I then locked to the 10 second default of Requests::request?

    Because I can’t see any place to set ‘connect_timeout’?

    • This topic was modified 4 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Setting ‘connect_timeout’ in http_request_args?’ is closed to new replies.