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

XF 1.3 Feeder, change timeout

Discussion in 'Troubleshooting and Problems' started by slewis1972, May 4, 2014.

  1. slewis1972

    slewis1972 Member

    I am trying to import a large feed but I keep getting the timeout which is set to 10 seconds. I want to increase to 60 seconds atleast. Any ideas if possible?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    What is the URL of the feed?
     
  3. slewis1972

    slewis1972 Member

  4. Mike

    Mike XenForo Developer Staff Member

    There isn't a configuration option for this, so it would require code changes. The timeout is defined by the HTTP client used by the Zend Framework feed importer.
     
  5. slewis1972

    slewis1972 Member

    Happy to make the changes where necessary. If we can get the solution working it would also help others convert websites into XenForo based ones possibly.
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can try it:

    library/Zend/Http/Client.php

    Code:
        protected $config = array(
            'maxredirects'    => 5,
            'strictredirects' => false,
            'useragent'       => 'Zend_Http_Client',
            'timeout'         => 10,
            'adapter'         => 'Zend_Http_Client_Adapter_Socket',
            'httpversion'     => self::HTTP_1,
            'keepalive'       => false,
            'storeresponse'   => true,
            'strict'          => true,
            'output_stream'   => false,
            'encodecookies'   => true,
            'rfc3986_strict'  => false
        );
    
     
  7. slewis1972

    slewis1972 Member

    Just want to say, worked a treat. I had to clear the cache a few times on other site but got all threads in.
     

Share This Page