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

Script Timeout

Discussion in 'XenForo Development Discussions' started by Aayush, Feb 9, 2014.

  1. Aayush

    Aayush Well-Known Member

    I am coding an addon which will be interacting with a third party API.
    I just wanted to know if the server takes too long to respond or the data sent requires a lot of processing to be done.
    Will the script be terminated, if yes after how long?

    Thanks
     
  2. Vincent Gabriel

    Vincent Gabriel Active Member

    The local script running or the API call to the remote server?
     
  3. Aayush

    Aayush Well-Known Member

    local script running, I am investigating into deferred process is there any guides out there?
     
  4. Vincent Gabriel

    Vincent Gabriel Active Member

  5. Aayush

    Aayush Well-Known Member

    I'll check it out.
    Probably do some tests using sleep() to see if it really works.

    Thanks

    Edit : Is there any native support built in xenforo for it?
     
  6. Vincent Gabriel

    Vincent Gabriel Active Member

    why would you use sleep? native support in xenforo for what? memory limit?
     
  7. Aayush

    Aayush Well-Known Member

    I'll use sleep to to test out some stuff*mainly to see if it works*, cause I remember using that function for another site of mine http://hypeninja.co/ but wasn't able to make it work at that time due to improper implementation on my end and lack of time to test it.

    I was talking whether xenforo has something like that already built into it like how it runs the installs as deferred.
    Mainly looking for a native XF function to achieve it rather than using a PHP function.
     

Share This Page