From 69e971b7aedcf54ec9dbb0e77fcd956e436908f8 Mon Sep 17 00:00:00 2001 From: Andreas Grupp Date: Wed, 24 Jun 2020 13:29:43 +0200 Subject: [PATCH] Increase response timeout while testing URL The normal timeout might be sufficient for a BBB-server with zero or only a few meetings. But for example a scalelite-server, having hundreds of meetings at the time of testing, does respond not fast enough. An increasing of the timeout solves the problem. --- includes/class-bigbluebutton-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-bigbluebutton-api.php b/includes/class-bigbluebutton-api.php index f44670e..3c3618b 100644 --- a/includes/class-bigbluebutton-api.php +++ b/includes/class-bigbluebutton-api.php @@ -362,7 +362,7 @@ public static function test_bigbluebutton_server( $url, $salt ) { * @return Array|WP_Error $response Server response in array format. */ private static function get_response( $url ) { - $result = wp_remote_get( esc_url_raw( $url ) ); + $result = wp_remote_get( esc_url_raw( $url ) , array( 'timeout' => 180 )); return $result; }