Title: persistent socket client connections · Issue #236 · reactphp/reactphp · GitHub
Open Graph Title: persistent socket client connections · Issue #236 · reactphp/reactphp
X Title: persistent socket client connections · Issue #236 · reactphp/reactphp
Description: Hi, I need to simultaneously poll a bunch of TCP devices in multiple locations as often as every 15 seconds. I'll probably have a daemonized shell script that periodically calls a PHP script via CLI. Some of these connections will be TCP...
Open Graph Description: Hi, I need to simultaneously poll a bunch of TCP devices in multiple locations as often as every 15 seconds. I'll probably have a daemonized shell script that periodically calls a PHP script via CL...
X Description: Hi, I need to simultaneously poll a bunch of TCP devices in multiple locations as often as every 15 seconds. I'll probably have a daemonized shell script that periodically calls a PHP script vi...
Opengraph URL: https://github.com/reactphp/reactphp/issues/236
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"persistent socket client connections","articleBody":"Hi,\n\nI need to simultaneously poll a bunch of TCP devices in multiple locations as often as every 15 seconds. I'll probably have a daemonized shell script that periodically calls a PHP script via CLI.\n\nSome of these connections will be TCP, others SSL and the devices themselves are not particularly fast. To save connection overhead, I'd like PHP to reuse already opened sockets (contexts) by passing the `STREAM_CLIENT_ASYNC_CONNECT` flag during socket creation. Currently it's not possible, but should be quite trivial to add via a 3rd \"custom flags\" `$flags` argument in the `create()` method and pass it through to `createSocketForAddress()` here:\n\nhttps://github.com/reactphp/react/blob/master/src/React/SocketClient/Connector.php#L35\n\nI can add this in a fork and submit a pull request if it fits the project's goals. Otherwise I'll just keep it to myself and tell no one, ever.\n","author":{"url":"https://github.com/leeoniya","@type":"Person","name":"leeoniya"},"datePublished":"2013-11-21T08:22:46Z","url":"https://github.com/reactphp/reactphp/issues/236"}
| 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:2d4182b9-44c3-5917-b9da-e7c2feb4bf96 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE6C:96DDF:60D403:7C405A:6B00DD14 |
| html-safe-nonce | 0ad3b1ca7ae4c5cf01d5bf8fc75495dc10fd15ad6b7ce0b4967049138ac6ab7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTZDOjk2RERGOjYwRDQwMzo3QzQwNUE6NkIwMEREMTQiLCJ2aXNpdG9yX2lkIjoiMzYxOTc0NDg5Njc3ODgwNTk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 572b6c4e8ea5a2b029e399934ff334854ed4c69929dc9b697668977288e850e9 |
| hovercard-subject-tag | issue:23050619 |
| 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/236/issue_layout |
| twitter:image | https://opengraph.githubassets.com/135ad1da3dabf0c99ca402110cb92c0f5d2ed93f7933533edb61af16b943c72f/reactphp/reactphp/issues/236 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/135ad1da3dabf0c99ca402110cb92c0f5d2ed93f7933533edb61af16b943c72f/reactphp/reactphp/issues/236 |
| og:image:alt | Hi, I need to simultaneously poll a bunch of TCP devices in multiple locations as often as every 15 seconds. I'll probably have a daemonized shell script that periodically calls a PHP script via CL... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | leeoniya |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width