File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/public/Collaboration/Reference Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ private function fetchReference(Reference $reference): void {
114114
115115 $ client = $ this ->clientService ->newClient ();
116116 try {
117- $ headResponse = $ client ->head ($ reference ->getId (), [ 'timeout ' => 10 ]);
117+ $ headResponse = $ client ->head ($ reference ->getId (), [ 'timeout ' => 3 ]);
118118 } catch (\Exception $ e ) {
119119 $ this ->logger ->debug ('Failed to perform HEAD request to get target metadata ' , ['exception ' => $ e ]);
120120 return ;
@@ -136,7 +136,7 @@ private function fetchReference(Reference $reference): void {
136136 }
137137
138138 try {
139- $ response = $ client ->get ($ reference ->getId (), [ 'timeout ' => 10 , 'stream ' => true ]);
139+ $ response = $ client ->get ($ reference ->getId (), [ 'timeout ' => 3 , 'stream ' => true ]);
140140 } catch (\Exception $ e ) {
141141 $ this ->logger ->debug ('Failed to fetch link for obtaining open graph data ' , ['exception ' => $ e ]);
142142 return ;
@@ -184,7 +184,7 @@ private function fetchReference(Reference $reference): void {
184184 $ folder = $ appData ->newFolder ('opengraph ' );
185185 }
186186
187- $ response = $ client ->get ($ object ->images [0 ]->url , ['timeout ' => 10 ]);
187+ $ response = $ client ->get ($ object ->images [0 ]->url , ['timeout ' => 3 ]);
188188 $ contentType = $ response ->getHeader ('Content-Type ' );
189189 $ contentLength = $ response ->getHeader ('Content-Length ' );
190190
You can’t perform that action at this time.
0 commit comments