This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('SCRIPT_MEMORY_CONSUMPTION', memory_get_usage(true)); | |
gc_enable(); | |
/** | |
* we might call gc_collect_cycles if | |
* memory_get_usage >= original memory * threshold | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('CLIENT_PORT', 10000); | |
define('HOST','127.0.0.1'); | |
define('SERVER_PORT', 10001); | |
gc_enable(); | |
$loop = React\EventLoop\Factory::create(); |
NewerOlder