HTTP_Download::setBufferSize (Previous) (Next) HTTP_Download::setContentType

View this page in Last updated: Sun, 01 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTTP_Download::setThrottleDelay()

HTTP_Download::setThrottleDelay() --  Set throttle delay in seconds

Leírás

Set the amount of seconds to sleep after each chunck that has been sent. One can implement some sort of throttle through adjusting the buffer size and the throttle delay. With a setting of buffersize=25600 and throttledelay=1 HTTP_Download will sleep a second after each 25 K of data sent.

Just be aware that if gzip'ing is enabled, decreasing the chunk size too much leads to proportionally increased network traffic due to added gzip header and bottom bytes around each chunk.

Paraméterek

  • float [$seconds = 0] - amount of seconds to sleep

Visszatérési érték

Returns void.

Megjegyzés

Ez a függvény nem hívható statikusan.

HTTP_Download::setBufferSize (Previous) (Next) HTTP_Download::setContentType

Download Documentation Last updated: Sun, 01 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.