efps-version
elf 1 year ago
parent d99c4180d1
commit b5121c0e25

@ -55,9 +55,9 @@ abstract class AbstractApi
self::$client = new Client([ self::$client = new Client([
'base_uri' => self::getConfig('baseUrl'), 'base_uri' => self::getConfig('baseUrl'),
'handler' => HandlerStack::create(new CoroutineHandler()), 'handler' => HandlerStack::create(new CoroutineHandler()),
'timeout' => 5, 'timeout' => 20,
'swoole' => [ 'swoole' => [
'timeout' => 10, 'timeout' => 20,
'socket_buffer_size' => 1024 * 1024 * 2, 'socket_buffer_size' => 1024 * 1024 * 2,
], ],
]); ]);

Loading…
Cancel
Save