René's URL Explorer Experiment


Title: Threads exit upon creation. · Issue #50 · etr/libhttpserver · GitHub

Open Graph Title: Threads exit upon creation. · Issue #50 · etr/libhttpserver

X Title: Threads exit upon creation. · Issue #50 · etr/libhttpserver

Description: When running the server in gdb, I noticed that when using multiple threads, as soon as they are created they immediately exit, with the exception of the last one created. Here is the output of gdb when running your example hello_world.cp...

Open Graph Description: When running the server in gdb, I noticed that when using multiple threads, as soon as they are created they immediately exit, with the exception of the last one created. Here is the output of gdb ...

X Description: When running the server in gdb, I noticed that when using multiple threads, as soon as they are created they immediately exit, with the exception of the last one created. Here is the output of gdb ...

Opengraph URL: https://github.com/etr/libhttpserver/issues/50

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Threads exit upon creation.","articleBody":"When running the server in gdb, I noticed that when using multiple threads, as soon as they are created they immediately exit, with the exception of the last one created. Here is the output of gdb when running your example `hello_world.cpp`: \n\n```\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library \"/usr/lib/libthread_db.so.1\".\n[New Thread 0x7ffff525e700 (LWP 9992)]\n[Thread 0x7ffff525e700 (LWP 9992) exited]\n[New Thread 0x7ffff4a5d700 (LWP 9993)]\n[Thread 0x7ffff4a5d700 (LWP 9993) exited]\n[New Thread 0x7ffff425c700 (LWP 9994)]\n[Thread 0x7ffff425c700 (LWP 9994) exited]\n[New Thread 0x7ffff3a5b700 (LWP 9995)]\n[Thread 0x7ffff3a5b700 (LWP 9995) exited]\n[New Thread 0x7ffff325a700 (LWP 9996)]\n```\n\nI was looking through the source code, specifically this loop (https://github.com/etr/libhttpserver/blob/bb9f8b20626eb179ba0de79096f6fa60eff0cf16/src/webserver.cpp#L537), and noticed that you are handling the creation of multiple threads within libhttpserver. I was under the impression that libmicrohttpd handled the thread pool with the `MHD_USE_SELECT_INTERNALLY` flag and setting `MHD_OPTION_THREAD_POOL_SIZE` in the options list (the `va_args` parameter to `MHD_start_daemon`).\n\nI have verified that this is not an issue with my setup or libmicrohttpd by running the example in the libmicrohttpd docs with multiple threads, and they do not exit after creation.\n\nIf you need any more information, let me know!\n","author":{"url":"https://github.com/m-renaud","@type":"Person","name":"m-renaud"},"datePublished":"2014-05-01T00:20:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/50/libhttpserver/issues/50"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ee816986-7fd9-324c-a4be-21f572653aa3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD34:276C72:7707DC:9E44A0:6A530649
html-safe-nonce4447d52d377ec46ec4db0347bc65c6501ab010a581ea9f4f6874d702ff43cc12
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDM0OjI3NkM3Mjo3NzA3REM6OUU0NEEwOjZBNTMwNjQ5IiwidmlzaXRvcl9pZCI6IjU4MjUxNTMyNDA3MDMxMDg2ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacaecb4101fc612b0c6787a47e0decc470db6eabe80cb6b9ae0fee06444e4fe6d1
hovercard-subject-tagissue:32585959
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/etr/libhttpserver/50/issue_layout
twitter:imagehttps://opengraph.githubassets.com/afd8dbb2e5e7859010d6304c97e869573148ebb0fe0e0d4793c97c410ba93ed5/etr/libhttpserver/issues/50
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/afd8dbb2e5e7859010d6304c97e869573148ebb0fe0e0d4793c97c410ba93ed5/etr/libhttpserver/issues/50
og:image:altWhen running the server in gdb, I noticed that when using multiple threads, as soon as they are created they immediately exit, with the exception of the last one created. Here is the output of gdb ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamem-renaud
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/etr/libhttpserver git https://github.com/etr/libhttpserver.git
octolytics-dimension-user_id1201536
octolytics-dimension-user_loginetr
octolytics-dimension-repository_id3416891
octolytics-dimension-repository_nwoetr/libhttpserver
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3416891
octolytics-dimension-repository_network_root_nwoetr/libhttpserver
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/etr/libhttpserver/issues/50#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fetr%2Flibhttpserver%2Fissues%2F50
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fetr%2Flibhttpserver%2Fissues%2F50
Sign up https://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=etr%2Flibhttpserver
Reloadhttps://github.com/etr/libhttpserver/issues/50
Reloadhttps://github.com/etr/libhttpserver/issues/50
Reloadhttps://github.com/etr/libhttpserver/issues/50
etr https://github.com/etr
libhttpserverhttps://github.com/etr/libhttpserver
Notifications https://github.com/login?return_to=%2Fetr%2Flibhttpserver
Fork 191 https://github.com/login?return_to=%2Fetr%2Flibhttpserver
Star 942 https://github.com/login?return_to=%2Fetr%2Flibhttpserver
Code https://github.com/etr/libhttpserver
Issues 15 https://github.com/etr/libhttpserver/issues
Pull requests 4 https://github.com/etr/libhttpserver/pulls
Actions https://github.com/etr/libhttpserver/actions
Projects https://github.com/etr/libhttpserver/projects
Wiki https://github.com/etr/libhttpserver/wiki
Security and quality 0 https://github.com/etr/libhttpserver/security
Insights https://github.com/etr/libhttpserver/pulse
Code https://github.com/etr/libhttpserver
Issues https://github.com/etr/libhttpserver/issues
Pull requests https://github.com/etr/libhttpserver/pulls
Actions https://github.com/etr/libhttpserver/actions
Projects https://github.com/etr/libhttpserver/projects
Wiki https://github.com/etr/libhttpserver/wiki
Security and quality https://github.com/etr/libhttpserver/security
Insights https://github.com/etr/libhttpserver/pulse
Threads exit upon creation.https://github.com/etr/libhttpserver/issues/50#top
https://github.com/m-renaud
m-renaudhttps://github.com/m-renaud
on May 1, 2014https://github.com/etr/libhttpserver/issues/50#issue-32585959
libhttpserver/src/webserver.cpphttps://github.com/etr/libhttpserver/blob/bb9f8b20626eb179ba0de79096f6fa60eff0cf16/src/webserver.cpp#L537
bb9f8b2https://github.com/etr/libhttpserver/commit/bb9f8b20626eb179ba0de79096f6fa60eff0cf16
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.