Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,411
    Thanks
    268
    Thanked 32 Times in 31 Posts

    Will using ajax prevent server timeout

    I have a ajax call on one of my pages, was wondering if the process im running on the page takes a bit, will including an ajax call prevent the process from timing out.

    So lets say I call a elapsed timer routine using ajax, my thinking is that since the content data is being refreshed due to the elapsed time feed, that would prevent the page from timing out because the page still has activity.

    or am I dead wrong on that?

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    It would depend on how the process that you want to prevent from timing out is being run and how the ajax call is set up to interact with it.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,411
    Thanks
    268
    Thanked 32 Times in 31 Posts
    Hi thanks,

    Its an upload video process and 150mb works fine but if I go to 170mb max vid size, it seems to be just a bit too long for my upload speed and the server times out.

    So I was thinking if I added a elapse timer via ajax then it would last long enough to get the larger vid uploaded before the upload to the server timed out.

    This all came about because my customers want to upload larger vids and I managed to comfort them by saying I would add 20mb more.

  • #4
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,378
    Thanks
    11
    Thanked 592 Times in 572 Posts
    i dont think that would help. can you adjust the settings of your server to have a longer timeout or larger max_upload_size?
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%

  • #5
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,411
    Thanks
    268
    Thanked 32 Times in 31 Posts
    OK thanks a bunch


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •