Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a timeout to reads to prevent slow responding blogs from taking d…

…own everything
  • Loading branch information...
commit b118afc83f1ce0d00aab99e60ad1590882418587 1 parent db39c10
@chregu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  libs/magpierss/extlib/Snoopy.class.inc
View
2  libs/magpierss/extlib/Snoopy.class.inc
@@ -75,7 +75,7 @@ class Snoopy
var $response_code = ""; // response code returned from server
var $headers = array(); // headers returned from server sent here
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
// set to 0 to disallow timeouts
var $timed_out = false; // if a read operation timed out
Please sign in to comment.
Something went wrong with that request. Please try again.