1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Won't Fix Gavatar Timeout

Discussion in 'Resolved Bug Reports' started by digitalpoint, Feb 24, 2013.

  1. digitalpoint

    digitalpoint Well-Known Member

    It's rare, but I see it in the server error log about once a week...
    Code:
    Zend_Http_Client_Adapter_Exception: Unable to Connect to ssl://secure.gravatar.com:443. Error #110: Connection timed out - library/Zend/Http/Client/Adapter/Socket.php:235
    XenForo_Model_Avatar is already omitting the log writing if the error is "Read timed out", but probably not a bad idea to also omit if there was a general connection error too...

    This:
    PHP:
    if (strpos($e->getMessage(), 'Read timed out') === false)
    could be this?
    PHP:
    if (strpos($e->getMessage(), 'Read timed out') === false || strpos($e->getMessage(), 'Unable to Connect') === false)
     
    Daracon and Chris D like this.
  2. Mike

    Mike XenForo Developer Staff Member

    I think I'm going to leave this as is, as I have seen some firewalls that are overly aggressive and block outgoing connections - I think hiding the error here might mask that situation.
     
    Slavik likes this.

Share This Page