#14 make the timeout for fsockopen a public variable

open
nobody
None
5
2005-10-20
2005-10-20
Anonymous
No

I am reading an rss file from a server whenever my
local cached one is older than 5 minutes. That server
is frequently not reachable so in that case I will
always face the fsockopen timeout. Thus I want to
adjust that timeout to allow normal visiting of the
page even when that other server is down. So here's my
patch for Snoopy 1.2:

102a103,104
> var $fsockopen_timeout = 30; // timeout for
socket connection
>
118d119
< var $_fp_timeout = 30; // timeout for socket
connection
1125c1126
< $this->_fp_timeout
---
> $this->fsockopen_timeout

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks