aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-09 14:03:28 -0800
committerFriendika <info@friendika.com>2010-12-09 14:03:28 -0800
commit7d1c35f5cc10e1d240a545d86f9a280b6a7ae9e1 (patch)
tree2eaf8a7bd485022353cb38a0f00acbccbf107247
parentb7abdf8795de0ad36a2cb99d4fc40ab60f50f038 (diff)
downloadvolse-hubzilla-7d1c35f5cc10e1d240a545d86f9a280b6a7ae9e1.tar.gz
volse-hubzilla-7d1c35f5cc10e1d240a545d86f9a280b6a7ae9e1.tar.bz2
volse-hubzilla-7d1c35f5cc10e1d240a545d86f9a280b6a7ae9e1.zip
found the cause of intermittent friend confirmation glitch (but not with 100% certainty)
-rw-r--r--boot.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index c4bdb1187..a92ceba3c 100644
--- a/boot.php
+++ b/boot.php
@@ -424,7 +424,10 @@ function fetch_url($url,$binary = false, &$redirects = 0) {
$a->set_curl_code(0);
- $s = curl_exec($ch);
+ // don't let curl abort the entire application
+ // if it throws any errors.
+
+ $s = @curl_exec($ch);
$http_code = intval(curl_getinfo($ch, CURLINFO_HTTP_CODE));
$header = substr($s,0,strpos($s,"\r\n\r\n"));
@@ -484,7 +487,10 @@ function post_url($url,$params, $headers = null, &$redirects = 0) {
$a->set_curl_code(0);
- $s = curl_exec($ch);
+ // don't let curl abort the entire application
+ // if it throws any errors.
+
+ $s = @curl_exec($ch);
$http_code = intval(curl_getinfo($ch, CURLINFO_HTTP_CODE));
$header = substr($s,0,strpos($s,"\r\n\r\n"));