mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #49111
[Bug 1782062] [NEW] Gravatar connection timeout too long
Public bug reported:
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
** Affects: mahara
Importance: High
Assignee: Robert Lyon (robertl-9)
Status: In Progress
** Changed in: mahara
Milestone: None => 18.10.0
** Changed in: mahara
Status: New => In Progress
** Changed in: mahara
Assignee: (unassigned) => Robert Lyon (robertl-9)
** Changed in: mahara
Importance: Undecided => High
--
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:
In Progress
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
Follow ups