HttpResponse::setThrottleDelay
(PECL pecl_http >= 0.10.0)
HttpResponse::setThrottleDelay — Set throttle delay
Opis
static
bool HttpResponse::setThrottleDelay
( float
$seconds
)Sets the throttle delay.
Informacja: Zapewnia podstawowy mechanizm dławiący, który będzie podtrzymywać bieżący proces lub wątek, dopóki nie zostanie wysłana całość.
Informacja:
To może nie działać jak się spodziewasz z następującymi SAPI: FastCGI.
Parametry
-
seconds -
seconds to sleep after each chunk sent
Zwracane wartości
Zwraca TRUE w przypadku powodzenia, FALSE w
przypadku błędu.
Zobacz też:
- HttpResponse::getBufferSize() - Get buffer size
- HttpResponse::setBufferSize() - Set buffer size
- HttpResponse::getThrottleDelay() - Get throttle delay
There are no user contributed notes for this page.
