← Back to team overview

mahara-contributors team mailing list archive

[Bug 1782062] Re: Gravatar connection timeout too long

 

** Changed in: mahara
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1782062

Title:
  Gravatar connection timeout too long

Status in Mahara:
  Fix Committed

Bug description:
  If you are using a site with gravatars enabled and they connection is
  not resolvable then on login the check is held open for 60 seconds
  until curl instance times out as per:

      curl_setopt($ch, CURLOPT_TIMEOUT, 60);

  in mahara_http_request()

  But the check goes thru is_valid_url() and this is because we don't
  want to fetch the result but check the url does exist/resolves

  So we should pass a CURLOPT_CONNECTTIMEOUT value that is small so
  things timeout much quicker

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1782062/+subscriptions


References