René's URL Explorer Experiment


Title: EventBase::loop(): kevent: Bad file descriptor · Issue #280 · reactphp/socket · GitHub

Open Graph Title: EventBase::loop(): kevent: Bad file descriptor · Issue #280 · reactphp/socket

X Title: EventBase::loop(): kevent: Bad file descriptor · Issue #280 · reactphp/socket

Description: hello, I'm writing forking TCP server with master and forked worker processes. the ExtEventLoop instance in child process will raise some error like this: Warning: EventBase::looPHP Warning: EventBase::loop(): kevent: Bad file descriptor...

Open Graph Description: hello, I'm writing forking TCP server with master and forked worker processes. the ExtEventLoop instance in child process will raise some error like this: Warning: EventBase::looPHP Warning: EventB...

X Description: hello, I'm writing forking TCP server with master and forked worker processes. the ExtEventLoop instance in child process will raise some error like this: Warning: EventBase::looPHP Warning: Ev...

Opengraph URL: https://github.com/reactphp/socket/issues/280

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"EventBase::loop(): kevent: Bad file descriptor","articleBody":"hello, \r\n\r\nI'm writing forking TCP server with master and forked worker processes. the `ExtEventLoop` instance in child process will raise some error like this:\r\n\r\n```\r\nWarning: EventBase::looPHP Warning:  EventBase::loop(): kevent: Bad file descriptor in /Users/xxx/vendor/react/event-loop/src/ExtEventLoop.php on line 205\r\n\r\nWarning: EventBase::loop(): kevent: Bad file descriptor in /Users/xxxxx/vendor/react/event-loop/src/ExtEventLoop.php on line 205\r\ntserver/vendor/react/event-loop/src/ExtEventLoop.php on line 205\r\n```\r\n\r\nSample code:\r\n\r\n```php\r\ninclude __DIR__ . '/vendor/autoload.php';\r\n\r\n$loop = \\React\\EventLoop\\Loop::get();\r\n$server = new \\React\\Socket\\SocketServer('tcp://127.0.0.1:1234', [], $loop);\r\n\r\nconst WORKER_NUM = 3;\r\n\r\nfor ($i = 0; $i \u003c= WORKER_NUM; $i++) {\r\n    $pid = pcntl_fork();\r\n    if (-1 === $pid) {\r\n        exit('fork error');\r\n    } elseif ($pid) {\r\n       \r\n    } else {\r\n        // run the server.\r\n        $loop->run();\r\n        exit;\r\n    }\r\n}\r\n// close in master process.\r\n$server->close();\r\npcntl_wait($status);\r\n```\r\n\r\nenvironment: \r\n```\r\nphp: 7.4.25 NTS\r\nos: macos 11.5.2\r\nmachine: Macbook pro(Apple M1)\r\n```\r\n\r\nReference [https://stackoverflow.com/questions/33735302/reactphp-libevent-and-socket-pair-throws-error](https://stackoverflow.com/questions/33735302/reactphp-libevent-and-socket-pair-throws-error)\r\n\r\n\r\nIs it possible to add a method `getEventBase()` in  [https://github.com/reactphp/event-loop/blob/master/src/ExtEventLoop.php](https://github.com/reactphp/event-loop/blob/master/src/ExtEventLoop.php) to expose the raw `eventBase` object?","author":{"url":"https://github.com/slince","@type":"Person","name":"slince"},"datePublished":"2021-12-08T11:43:15Z","url":"https://github.com/reactphp/socket/issues/280"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:03672ef7-994d-37ac-dda1-28f62b86f964
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA98:3AC32C:1177E0:186781:6B006427
html-safe-noncea8ec4827b5cb37411dee4999b365bc909e2bc2e639c1cd71d47f638932be8073
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTk4OjNBQzMyQzoxMTc3RTA6MTg2NzgxOjZCMDA2NDI3IiwidmlzaXRvcl9pZCI6IjMzMzIwODMyOTU1NzkwMzg3NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac352afcff1cfaaef375b9cf52c9f4a896e6b8e527fd40c29786352b482b8c281c
hovercard-subject-tagissue:1074319045
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/reactphp/socket/280/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b5fd7b53f9db97b5f0fbf4b1dcc6f8b19416e14665444171905d087ec14fa873/reactphp/socket/issues/280
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b5fd7b53f9db97b5f0fbf4b1dcc6f8b19416e14665444171905d087ec14fa873/reactphp/socket/issues/280
og:image:althello, I'm writing forking TCP server with master and forked worker processes. the ExtEventLoop instance in child process will raise some error like this: Warning: EventBase::looPHP Warning: EventB...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameslince
hostnamegithub.com
expected-hostnamegithub.com
None25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e
turbo-cache-controlno-preview
go-importgithub.com/reactphp/socket git https://github.com/reactphp/socket.git
octolytics-dimension-user_id1696866
octolytics-dimension-user_loginreactphp
octolytics-dimension-repository_id4287591
octolytics-dimension-repository_nworeactphp/socket
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id4287591
octolytics-dimension-repository_network_root_nworeactphp/socket
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4f5c239e31f1f680e6bbc419ff92d774da616ec
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/reactphp/socket/issues/280#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Freactphp%2Fsocket%2Fissues%2F280
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Freactphp%2Fsocket%2Fissues%2F280
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=reactphp%2Fsocket
Reloadhttps://github.com/reactphp/socket/issues/280
Reloadhttps://github.com/reactphp/socket/issues/280
Reloadhttps://github.com/reactphp/socket/issues/280
reactphphttps://github.com/reactphp
sockethttps://github.com/reactphp/socket
Codehttps://github.com/reactphp/socket
Issues7 (7)https://github.com/reactphp/socket/issues
Pull requests9 (9)https://github.com/reactphp/socket/pulls
Actionshttps://github.com/reactphp/socket/actions
Security and qualityhttps://github.com/reactphp/socket/security
Insightshttps://github.com/reactphp/socket/insights
https://github.com/reactphp/socket
New issuehttps://github.com/login?return_to=https://github.com/reactphp/socket/issues/280
New issuehttps://github.com/login?return_to=https://github.com/reactphp/socket/issues/280
EventBase::loop(): kevent: Bad file descriptorhttps://github.com/reactphp/socket/issues/280#top
questionhttps://github.com/reactphp/socket/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com/slince
slincehttps://github.com/slince
on Dec 8, 2021https://github.com/reactphp/socket/issues/280#issue-1074319045
https://stackoverflow.com/questions/33735302/reactphp-libevent-and-socket-pair-throws-errorhttps://stackoverflow.com/questions/33735302/reactphp-libevent-and-socket-pair-throws-error
https://github.com/reactphp/event-loop/blob/master/src/ExtEventLoop.phphttps://github.com/reactphp/event-loop/blob/master/src/ExtEventLoop.php
https://github.com/slince
slincehttps://github.com/slince
on Dec 9, 2021https://github.com/reactphp/socket/issues/280#issuecomment-989641351
@cluehttps://github.com/clue
@WyriHaximushttps://github.com/WyriHaximus
https://github.com/WyriHaximus
WyriHaximushttps://github.com/WyriHaximus
on Dec 12, 2021https://github.com/reactphp/socket/issues/280#issuecomment-991995090
@slincehttps://github.com/slince
https://github.com/slince
slincehttps://github.com/slince
on Dec 13, 2021https://github.com/reactphp/socket/issues/280#issuecomment-992067497
@WyriHaximushttps://github.com/WyriHaximus
#220https://github.com/reactphp/socket/issues/220
cluehttps://github.com/clue
questionhttps://github.com/reactphp/socket/issues?q=state%3Aopen%20label%3A%22question%22
on Jan 5, 2022https://github.com/reactphp/socket/issues/280#event-5847673183
https://github.com/clue
cluehttps://github.com/clue
on Jan 5, 2022https://github.com/reactphp/socket/issues/280#issuecomment-1005909134
@slincehttps://github.com/slince
#269https://github.com/reactphp/socket/pull/269
ChildProcess componenthttps://github.com/reactphp/child-process
reactphp/event-loop#184https://github.com/reactphp/event-loop/pull/184
https://metacpan.org/dist/EV/view/libev/ev.pod#The-special-problem-of-forkhttps://metacpan.org/dist/EV/view/libev/ev.pod#The-special-problem-of-fork
cluehttps://github.com/clue
completedhttps://github.com/reactphp/socket/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 5, 2022https://github.com/reactphp/socket/issues/280#event-5847744092
https://github.com/slince
slincehttps://github.com/slince
on Jan 6, 2022https://github.com/reactphp/socket/issues/280#issuecomment-1006236957
@cluehttps://github.com/clue
workermanhttps://github.com/walkor/workerman
https://github.com/clue
cluehttps://github.com/clue
on Jan 6, 2022https://github.com/reactphp/socket/issues/280#issuecomment-1006429381
@slincehttps://github.com/slince
ChildProcess componenthttps://github.com/reactphp/child-process
#269https://github.com/reactphp/socket/pull/269
https://github.com/clue/fdhttps://github.com/clue/fd
Sign up for freehttps://github.com/signup?return_to=https://github.com/reactphp/socket/issues/280
Sign in to commenthttps://github.com/login?return_to=https://github.com/reactphp/socket/issues/280
questionhttps://github.com/reactphp/socket/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.