Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетил 17131 программист и 1835 роботов. Сейчас ищут 1544 программиста ...

HTTP_Download::setThrottleDelay

Вернуться к: HTTP_Download

HTTP_Download::setThrottleDelay

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

Synopsis

void HTTP_Download::setThrottleDelay ( float $seconds = 0 )

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.

Parameter

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

Return value

Returns void.

Note

This function can not be called statically.



Вернуться к: HTTP_Download

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware