Category : coroutine

Repair RepairSSL_MODE_ACCEPT_MOVING_WRITE_BUFFERResolveSSLThe next large packet transmission failed (#2667) (@twose) Fix BUG of signal monitoring function (#2675) (@matyhtf) RepairMySQLClient-down incompatible changes (#2674) (@twose) Repair inServerFailed to add event after startup (#2673) (@matyhtf) Repairstatic_handlerNo decodingurl, now supports Chinese path (#2676) (@twose) Fix warnings caused by smooth exit of task process (#2689) (@Yurunsoft) RepairHttp\Request->rawContentIn the coordination processServerThe following ..

Read more

Hyperf Hyperf is based onSwoole 4.3+The high-performance and high-flexibility PHP coordination framework, built-in coordination server and a large number of commonly used components, has better performance than the traditional one based onPHP-FPMThe framework of the has been improved qualitatively, providing ultra-high performance while maintaining extremely flexible scalability. The standard components are all based onPSR standardImplementation, ..

Read more

In fact, I didn’t know yield because of iteration or generator or studying PHP manual. If it weren’t for synergetic process, I still didn’t know there was such a ghost thing as yield in PHP. The family has introduced this stuff since PHP 5.5. The official name is generator. You have to say why things ..

Read more

In4.4In previous versions,SwooleHas not supportedCURLConcorde cannot be used in code.curl. Due tocurlUsedlibcurlLibrary implementation, not directlyhookIt’ssocket,4.4Version usageSwoole\Coroutine\Http\ClientThe simulation is realizedcurlTheAPIAnd replaced it at the bottomcurl_initEquifunctionalC Handler. Prompt CURL HookThe characteristics of the are still in the experimental stage, please do not use them directly in the production environment. File upload is not supported for the time ..

Read more

Swoole, PHP’s asynchronous, parallel and high-performance network communication engine, has been released.2.1.0Version. The new version provides a brand-new short-name API, fully supports the Coroutine)+ Channel feature, and brings a brand-new programming mode to the PHP language.Swoole 2.1TheAPILearn fromGoLanguage, in this directionGoThe language development team paid tribute. Coroutine go(function () { co::sleep(0.5); echo “hello”; }); go(“test”); ..

Read more

SwooleAlthough in2016The synergetic feature was supported in, but since the bottom layer is based onsetjmp/longjmpRealizedstacklessPlan. Therefore, in some scenarios, such ascall_user_func、array_map、__destructConcorde cannot be used in. Logic in large applications is very complex, and developers are easy to step into pits in teams with many people working together. Use Synergy in Forbidden ScenesAPIThere will be various ..

Read more

Major new features Redis/PDO/MySQLi support From4.1.0Version began to support the rightPHPNativeRedis、PDO、MySQLiThe support of coordination. AvailableSwoole\Runtime::enableCorotuine()Blocking common synchronizationRedis、PDO、MySQLiAsynchronous Non-blocking with Operations Becoming Coordinated SchedulingIO Swoole\Runtime::enableCoroutine(); go(function () { $redis = new redis; $retval = $redis->connect(“127.0.0.1”, 6379); var_dump($retval, $redis->getLastError()); var_dump($redis->get(“key”)); var_dump($redis->set(“key”, “value”)); $redis->close(); }); Concorde tracking The new version adds two methods to track coordinated operation. Coroutine::listCoroutines()It ..

Read more

It is often used in PHP programsshell_execExecute some commands while ordinary onesshell_execIs blocked, if the command execution time is too long, it may cause the process to be completely stuck.InSwoole4It can be used in coordination environment.Co::execExecute many commands concurrently. This article is based onSwoole-4.2.9AndPHP-7.2.9Version Synergetic example <? php $c = 10; while($c–) { go(function () ..

Read more

Swoole4ForPHPLanguage provides a powerfulCSPCollaborative programming mode. The bottom layer provides3Key words, can easily realize all kinds of functions. Swoole4ProvidedPHP coordinationGrammar is borrowed fromGolangIn this directionGODevelopment team pays tribute PHP+SwooleThe coordination process can be linked withGolangThey complement each other very well.GolangStatic language, rigorous and powerful with good performance.PHP+Swoole: Dynamic language, flexible, simple and easy to use ..

Read more

SwooleOpen source projects from2012The first edition began to be released in, and it is nearly now.7Years of history. During these seven years: Submitted8821Secondary code change Published287Versions Receive and resolve1161nextissueFeedback Merged603nextpull request in common100A developer contributed code InGitHubHarvest11940A star coroutine 2018We launched a brand newSwoole4Version, prior to thisSwooleThe main programming method is synchronous blocking mode or ..

Read more