]> source.dussan.org Git - nextcloud-server.git/commitdiff
chore: Use constant for default value config-carddav-sync-request-timeout 48418/head
authorPablo Zmdl <57864086+pabzm@users.noreply.github.com>
Mon, 14 Oct 2024 07:56:30 +0000 (09:56 +0200)
committerDaniel <mail@danielkesselberg.de>
Thu, 17 Oct 2024 20:27:10 +0000 (22:27 +0200)
Co-authored-by: Thomas Citharel <nextcloud@tcit.fr>
Signed-off-by: Pablo Zmdl <57864086+pabzm@users.noreply.github.com>
apps/dav/lib/CardDAV/SyncService.php

index 026a02a72ab2658dcf91fa84023ac9c3f6b2de36..a10c830ec79b62fbc7dea65306b0ceba61344f2e 100644 (file)
@@ -10,6 +10,7 @@ namespace OCA\DAV\CardDAV;
 
 use OCP\AppFramework\Db\TTransactional;
 use OCP\AppFramework\Http;
+use OCP\Http\Client\IClient;
 use OCP\Http\Client\IClientService;
 use OCP\IConfig;
 use OCP\IDBConnection;
@@ -155,7 +156,7 @@ class SyncService {
                        'auth' => [$userName, $sharedSecret],
                        'body' => $this->buildSyncCollectionRequestBody($syncToken),
                        'headers' => ['Content-Type' => 'application/xml'],
-                       'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', 30)
+                       'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', IClient::DEFAULT_REQUEST_TIMEOUT)
                ];
 
                $response = $client->request(