You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a simple script for reproducing the error.
<?php
\Swoole\Coroutine::create(function (){
while (true) {
\Swoole\Coroutine::create(function (){
$client = new \Swoole\Coroutine\Http\Client('baidu.com',443,true);
$client->get('/');
var_dump($client->getStatusCode());
});
}
});
What did you expect to see?
What did you see instead?
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: thread constructor failed: Resource temporarily unavailable Abort trap: 6
What version of Swoole are you using (show your php --ri swoole)?
swoole
Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.6.6
Built => May 1 2021 14:02:28
coroutine => enabled with thread context
kqueue => enabled
rwlock => enabled
openssl => OpenSSL 1.1.1i 8 Dec 2020
dtls => enabled
http2 => enabled
pcre => enabled
zlib => 1.2.11
async_redis => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 262144 => 262144
What is your machine environment used (show your uname -a & php -v & gcc -v) ?
PHP 7.4.13 (cli) (built: Dec 23 2020 16:02:05) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: arm64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Darwin shidizai-Mac-mini.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 arm64
The text was updated successfully, but these errors were encountered:
Please answer these questions before submitting your issue. Thanks!
What did you expect to see?
What did you see instead?
php --ri swoole
)?uname -a
&php -v
&gcc -v
) ?The text was updated successfully, but these errors were encountered: