ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Zero Sized Reply problem again


  • 2006-09-01 06:26:51

    Zero Sized Reply problem again

    I've had this problem before, but then solved it: http://www.atutor.ca/view/7/5812/1.html

    However I am experiencing the same when trying to make a backup of a very large course (420 mb, due to many videos all in several qualities)

    IT-dept here gave me the following answer on why this is happening, and a possible solution:

    [blue]
    Somewhere a time out is triggered when the files takes too long time to process. Typically a timeout in Squid: it complaines about not getting any answer (zero sized reply) as the job isn't done yet, and therefora hasn't sent an answer.

    A typical way to solve this is to start to send the answer before the job is done: a "drip" of progress that surpasses the time out in Squid.

    A workaround is to increase the time out. The solution would be to alter the php code so to send data back to Squid before the entire operation is done

    BTW: there are dedicated HTTP facilities for operations that takes a long time to finish, alternatively you can return a SGML comment <!-- --> including a whitespace or a period at given intervalls. [/blue]

    (very quickly translated)

    any thought or ideas on how to solve this in the Atutor code?

  • 2006-09-04 09:36:33

    Re: Zero Sized Reply problem again

    Try resetting default_socket_timeout in php.ini

    and maybe:

    mysql.connect_timeout

  • 2006-09-06 10:15:52

    Re: Zero Sized Reply problem again

    Sending a response to the server will only work if the output is not buffered, which isn't likely.

    Also, regardless of how much time you let PHP execute for, the process will still die because it'll reach PHP's memory limit. Having PHP use up 420 MB of memory is not recommended. (The default limit is 8MB).

  • 2006-09-08 08:35:55

    Re: Zero Sized Reply problem again

    ok, I guess this is likely to cause problems for many users when wanting to back up courses, though.

    what do you suggest, backing up courses without the videos, or maybe not upload video in the file manager but include them from somewhere else..?

  • 2006-09-08 09:05:50

    Re: Zero Sized Reply problem again

    Locating video content on a separate system intended to serve multimedia, with enough memory to process very large files, and potentially stream those files, is probably a better choice than containing this content within a course. Link the videos into a content page from outside ATutor.

    While you can load your video into the file manager, as you have experienced, generating backups for courses with large amounts of video content is risky.