21-06-02 12:24:19 pid:18027 Error: Call to a member function destroy() on null in /data/wwwroot/project/vendor/workerman/http-client/src/Request.php:453 Stack trace: #0 /data/wwwroot/project/vendor/workerman/ht...
$async_http = new Client([ 'max_conn_per_addr' => 512, 'keepalive_timeout' => 60, 'connect_timeout' => 30, 'timeout' => 60, ]); $async_http->request()...
响应太快了,项目经理要求加点延迟,让客户觉得真实有效。 秒级的可以用 消息队列 延迟处理。 毫秒级的有办法吗? 选择性延迟响应,比如100-200毫秒,4000-8000毫秒、不延迟。 用定时器做个0.001的循环判断吗?...