Skip to content

Commit 576a1a2

Browse files
authored
tracklabels plugin: add Snoopy timeout (#2775)
1 parent dc9954c commit 576a1a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugins/tracklabels/action.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ function image_name($prefix, $req_field)
8484

8585
$url = Snoopy::linkencode("http://".$tracker."/favicon.ico");
8686
$client = new Snoopy();
87+
$client->read_timeout = 5;
88+
$client->_fp_timeout = 5;
8789
@$client->fetchComplex($url);
8890
if ($client->status == 200)
8991
file_put_contents($ico_name, $client->results);

0 commit comments

Comments
 (0)