Title: LibEv not removing timers when the connection isn't closed correctly · Issue #187 · reactphp/reactphp · GitHub
Open Graph Title: LibEv not removing timers when the connection isn't closed correctly · Issue #187 · reactphp/reactphp
X Title: LibEv not removing timers when the connection isn't closed correctly · Issue #187 · reactphp/reactphp
Description: I just tried @cboden's script mentioned in #167 on LibEv and realized LibEv have the same issue. Script used:
Open Graph Description: I just tried @cboden's script mentioned in #167 on LibEv and realized LibEv have the same issue. Script used:
X Description: I just tried @cboden's script mentioned in #167 on LibEv and realized LibEv have the same issue. Script used: <?php require __DIR__ . '/vendor/autoload.php'; $loop = new React\EventL...
Opengraph URL: https://github.com/reactphp/reactphp/issues/187
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LibEv not removing timers when the connection isn't closed correctly","articleBody":"I just tried @cboden's script mentioned in #167 on LibEv and realized LibEv have the same issue.\n\nScript used:\n\n``` php\n\u003c?php\n\n require __DIR__ . '/vendor/autoload.php';\n\n $loop = new React\\EventLoop\\LibEvLoop;\n $socket = new React\\Socket\\Server($loop);\n $i = 0;\n\n $socket->on('connection', function ($conn) use (&$i) {\n $i++;\n\n $conn->on('data', function($data) use ($conn) {\n $conn->write($data);\n });\n\n $conn->on('end', function() use (&$i) {\n $i--;\n });\n });\n\n $loop->addPeriodicTimer(5, function() use (&$i) {\n echo \"{$i} open connections?\\n\";\n });\n\n\n $socket->listen(4000, '0.0.0.0');\n $loop->run();\n```\n\nthen I launched on another term the command \n\n``` bash\nab -n 20 -c 10 http://localhost:4000/crap.html\n```\n\nand interrupted it after a few seconds, to see the number of connections not going down as it should.\n","author":{"url":"https://github.com/csaoh","@type":"Person","name":"csaoh"},"datePublished":"2013-04-22T16:25:00Z","url":"https://github.com/reactphp/reactphp/issues/187"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fbc20a9f-20cc-11bf-9c2f-d54ea707c429 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 842A:293090:2BA7CC:39C308:6B00C175 |
| html-safe-nonce | 2e18ae4e020c2fbe9ccaf54df6df50704a81ee2c7d3738765a9aedf2201761dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDJBOjI5MzA5MDoyQkE3Q0M6MzlDMzA4OjZCMDBDMTc1IiwidmlzaXRvcl9pZCI6IjUyOTIzNjA4OTgzNzgyNTI2NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0b5b5b2b9a38a13b5fb483fbf0ca2c4e13bc9ef9b6751e8635addf99c5658bf3 |
| hovercard-subject-tag | issue:13490720 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/reactphp/reactphp/187/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1788eba20823f8b6f3ba4c3bfaf0900b79c47d94b7580d97cbd5a32b2948c900/reactphp/reactphp/issues/187 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1788eba20823f8b6f3ba4c3bfaf0900b79c47d94b7580d97cbd5a32b2948c900/reactphp/reactphp/issues/187 |
| og:image:alt | I just tried @cboden's script mentioned in #167 on LibEv and realized LibEv have the same issue. Script used: |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | csaoh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415 |
| turbo-cache-control | no-preview |
| go-import | github.com/reactphp/reactphp git https://github.com/reactphp/reactphp.git |
| octolytics-dimension-user_id | 1696866 |
| octolytics-dimension-user_login | reactphp |
| octolytics-dimension-repository_id | 4287921 |
| octolytics-dimension-repository_nwo | reactphp/reactphp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4287921 |
| octolytics-dimension-repository_network_root_nwo | reactphp/reactphp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1fee81a280ea86312b69448e261b418189bfd5b5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width