If you have a lot of calls to a service using drupal_http_request(), and that service goes down, then you'll end up with variable_set() running every time that request fails. Instead we should check the value of the current variable before trying to set it again.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drupal_http_request-D6.patch | 784 bytes | catch |
| #1 | drupal_http_request.patch | 994 bytes | catch |
| drupal_http_request.patch | 994 bytes | catch |
Comments
Comment #1
catchs/variable_get/variable_set/ for the comment, via beejeebus in irc.
Comment #2
catchD6 patch.
Comment #3
catchhmm, form submissions are playing up for me on d.o today.
Comment #4
damien tournoud commentedWell, if that's really a problem, why not doing that directly in
variable_set()?Comment #5
catchIt feels like there's the possibility for a race condition in variable_set(), this would also prevent setting variables that are specified in $conf. Either way I'm marking this as a duplicate of #965078: HTTP request checking is unreliable and should be removed in favor of watchdog() calls.