文字

HttpResponse::setBufferSize

(PECL pecl_http >= 0.10.0)

HttpResponse::setBufferSizeSet buffer size

说明

static bool HttpResponse::setBufferSize ( int $bytes )

Sets the send buffer size of the throttling mechanism.

Note: 提供基本的节流机制,会放弃当前进程或线程,直至实体已被发送完毕。

Note:

下列 SAPI 可能不能正常的工作: FastCGI.

参数

bytes

the chunk size in bytes

返回值

成功时返回 TRUE , 或者在失败时返回 FALSE

参见

  • HttpResponse::getBufferSize() - Get buffer size
  • HttpResponse::getThrottleDelay() - Get throttle delay
  • HttpResponse::setThrottleDelay() - Set throttle delay
上一篇: 下一篇: