• Resolved shmulikk

    (@shmulikk)


    Hello,
    We are using the latest (4.3.1) version and we suffer from timeout issues from time to time, while the backend/index.php tries to communicate with 3rd party services like Google and Facebook (not anyone specific).
    I’ve grabbed more info using NewRelic and I can see that the curl_multi_exec run for 480 seconds (8 minutes) before it timeout.
    The strange thing is that the timeout for the http client set in our shariff.json is 10 seconds for timeout and 5 seconds for connect_timeout.

    Googling about it got me to a possibly related known defect in curl library where curl_multi_exec is known to ignore the timeouts:
    https://sourceforge.net/p/curl/bugs/797/

    Another related post: https://stackoverflow.com/questions/2297749/curl-multi-hanging-ignoring-timeout

    1. Does anyone else suffer from the same issue (occasional timeouts for the backend/index.php script)?
    2. Any chance someone already implemented the suggested fix/workaround in the curl bug above?
    3. Maybe I got it wrong and the issue is caused by something else – but for sure I see curl_multi_exec loading for 480 seconds every time a user get a timeout for getting social counts.

    Best,
    Shmuel.

    https://www.ads-software.com/plugins/shariff/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hi all, also interested to figure out how we can solve that issue.

    Plugin Author Jan-Peter

    (@starguide)

    Hey,

    I’m sorry, I haven’t had the time yet to look into this. I’ll try to get to around it next week.

    JP

    Hi, any update on this issue? I’m also curious how this can get resolved.

    Thanks,
    Oliver

    Thread Starter shmulikk

    (@shmulikk)

    Hi JP,
    Any chance you take a look on it?
    Just to get some update?…

    Best,
    Shmuel.

    Thread Starter shmulikk

    (@shmulikk)

    Adding a screenshot to make it easier:
    https://snag.gy/wzbpB.jpg

    Plugin Author Jan-Peter

    (@starguide)

    So, finally an update.

    I completely rewrote the backend to replace the original backend from Heise and therefore also got rid of the whole ZendFramework. The new version is a lot lighter than the old one and uses all the nice tools WordPress provides. This should take care of all the timeout and cUrl issues.

    The new version is currently in the testing phase and should, if we don’t find any major bugs, be release in the next couple of days.

    Regards,
    JP

    Thread Starter shmulikk

    (@shmulikk)

    :thumbs-up:
    waiting to give that a test drive

    Plugin Author 3UU

    (@3uu)

    Version 3.1 has the new backend now. Please give it a try.

    Thread Starter shmulikk

    (@shmulikk)

    Hi 3UU,
    I see the new 3.1 plugin here.

    I will have it tested and get back with feedback until the end of the month.

    Thanks.

    Thread Starter shmulikk

    (@shmulikk)

    It seems like the worst response time is now 45 seconds which is in line with the configured timeout for the googleplus backend.
    https://snag.gy/D32L0.jpg

    That’s good enough for me. (Tested 3.2.0)
    Thanks.

    Plugin Author Jan-Peter

    (@starguide)

    Hi shmulikk,

    well, good to hear. I still think 45 seconds are kind of long to wait for some share counts. I’ll therefore reduced it with version 3.3.1. If it doesn’t work out, we might increase it again, but for the moment I would like to see, if we can live with a shorter timeout here.

    Thanks for testing!

    JP

    Thread Starter shmulikk

    (@shmulikk)

    Hi,
    Version 3.3.1 contain some odd files on the root dir (pot files) is it expected?

    Plugin Author Jan-Peter

    (@starguide)

    Hi,

    just downloaded the current version from www.ads-software.com and there are no .pot files in the root dir. What are they called?

    JP

    Plugin Author 3UU

    (@3uu)

    There are no pot-files in the plugin. Please have a look at https://plugins.svn.www.ads-software.com/shariff/trunk/ However I have an idea of what it could be. Do you have an multi-language plugin installed like “CodeStyling Localization” or do you use “WPMU”? These tool try to check all strings in a new/updated plugin and use po/pot-files.

    Thread Starter shmulikk

    (@shmulikk)

    Strange I don’t see those files when downloading now…
    Forget it.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Timeout issues’ is closed to new replies.