Skip to content

Commit

Permalink
add a timeout to reads to prevent slow responding blogs from taking d…
Browse files Browse the repository at this point in the history
…own everything
  • Loading branch information
chregu committed Nov 1, 2010
1 parent db39c10 commit b118afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/magpierss/extlib/Snoopy.class.inc
Expand Up @@ -75,7 +75,7 @@ class Snoopy
var $response_code = ""; // response code returned from server var $response_code = ""; // response code returned from server
var $headers = array(); // headers returned from server sent here var $headers = array(); // headers returned from server sent here
var $maxlength = 500000; // max return data length (body) var $maxlength = 500000; // max return data length (body)
var $read_timeout = 0; // timeout on read operations, in seconds var $read_timeout = 2; // timeout on read operations, in seconds
// supported only since PHP 4 Beta 4 // supported only since PHP 4 Beta 4
// set to 0 to disallow timeouts // set to 0 to disallow timeouts
var $timed_out = false; // if a read operation timed out var $timed_out = false; // if a read operation timed out
Expand Down

0 comments on commit b118afc

Please sign in to comment.