René's URL Explorer Experiment


Title: 为啥不提供异步接口 · Issue #26 · sprinfall/webcc · GitHub

Open Graph Title: 为啥不提供异步接口 · Issue #26 · sprinfall/webcc

X Title: 为啥不提供异步接口 · Issue #26 · sprinfall/webcc

Description: 我看了您的部分代码(主要是关于http client部分的),发现其本身就是支持异步调用的。 void ClientBase::AsyncResolve(string_view default_port) { std::string port = request_->port(); if (port.empty()) { port = ToString(default_port); } LOG_VERB("Resolve host (%s)", request_->ho...

Open Graph Description: 我看了您的部分代码(主要是关于http client部分的),发现其本身就是支持异步调用的。 void ClientBase::AsyncResolve(string_view default_port) { std::string port = request_->port(); if (port.empty()) { port = ToString(default_port); } LO...

X Description: 我看了您的部分代码(主要是关于http client部分的),发现其本身就是支持异步调用的。 void ClientBase::AsyncResolve(string_view default_port) { std::string port = request_->port(); if (port.empty()) { port = ToString(default_port); }...

Opengraph URL: https://github.com/sprinfall/webcc/issues/26

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"为啥不提供异步接口","articleBody":"我看了您的部分代码(主要是关于http client部分的),发现其本身就是支持异步调用的。\r\n\r\n---------------------------------------------------------------------------------------\r\nvoid ClientBase::AsyncResolve(string_view default_port) {\r\n  std::string port = request_-\u003eport();\r\n  if (port.empty()) {\r\n    port = ToString(default_port);\r\n  }\r\n\r\n  LOG_VERB(\"Resolve host (%s)\", request_-\u003ehost().c_str());\r\n\r\n  // The protocol depends on the `host`, both V4 and V6 are supported.\r\n  resolver_.async_resolve(request_-\u003ehost(), port,\r\n                          std::bind(\u0026ClientBase::OnResolve, this, _1, _2));\r\n}\r\n\r\nvoid ClientBase::OnResolve(boost::system::error_code ec,\r\n                           tcp::resolver::results_type endpoints) {\r\n  if (ec) {\r\n    LOG_ERRO(\"Host resolve error (%s)\", ec.message().c_str());\r\n    error_.Set(Error::kResolveError, \"Host resolve error\");\r\n    FinishRequest();\r\n    return;\r\n  }\r\n\r\n  LOG_VERB(\"Connect socket\");\r\n\r\n  AsyncWaitDeadlineTimer(connect_timeout_);\r\n\r\n  socket_-\u003eAsyncConnect(request_-\u003ehost(), endpoints,\r\n                        std::bind(\u0026ClientBase::OnConnect, this, _1, _2));\r\n}\r\n---------------------------------------------------------------------------------------\r\n\r\n以上代码就是异步调用的。只是在ClientBase::FinishRequest函数中强行做了一个同步。\r\n\r\n我比较好奇的是,为啥不开放异步调用接口。对整个框架其实也没有额外的负担。","author":{"url":"https://github.com/windflowerly","@type":"Person","name":"windflowerly"},"datePublished":"2021-09-29T02:51:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/26/webcc/issues/26"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b4452270-7420-1b01-9858-bcf0a99f84bf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE39A:CFFC3:23C7B1C:3391489:6A4BE1CE
html-safe-noncebbbb659496129757d2c0639106e9081f9ebd94cc4c5a8fbb03963854ef52f19d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzlBOkNGRkMzOjIzQzdCMUM6MzM5MTQ4OTo2QTRCRTFDRSIsInZpc2l0b3JfaWQiOiI1MzcxMjMxMTMwODc0NTM2Mzk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac13f8c228b95faf741f85130116014aa04f798b4a5949d24c90af293a4ac3041c
hovercard-subject-tagissue:1010421674
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/sprinfall/webcc/26/issue_layout
twitter:imagehttps://opengraph.githubassets.com/06e88d76bf5a914003718cd255f29b1a90db61f5957f113ae1f173f1f588955c/sprinfall/webcc/issues/26
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/06e88d76bf5a914003718cd255f29b1a90db61f5957f113ae1f173f1f588955c/sprinfall/webcc/issues/26
og:image:alt我看了您的部分代码(主要是关于http client部分的),发现其本身就是支持异步调用的。 void ClientBase::AsyncResolve(string_view default_port) { std::string port = request_->port(); if (port.empty()) { port = ToString(default_port); } LO...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewindflowerly
hostnamegithub.com
expected-hostnamegithub.com
None0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2
turbo-cache-controlno-preview
go-importgithub.com/sprinfall/webcc git https://github.com/sprinfall/webcc.git
octolytics-dimension-user_id2732484
octolytics-dimension-user_loginsprinfall
octolytics-dimension-repository_id92490850
octolytics-dimension-repository_nwosprinfall/webcc
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id92490850
octolytics-dimension-repository_network_root_nwosprinfall/webcc
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
release253920ac2dc35b0849cca4633895f1f2e5f03051
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sprinfall/webcc/issues/26#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsprinfall%2Fwebcc%2Fissues%2F26
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2Fsprinfall%2Fwebcc%2Fissues%2F26
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=sprinfall%2Fwebcc
Reloadhttps://github.com/sprinfall/webcc/issues/26
Reloadhttps://github.com/sprinfall/webcc/issues/26
Reloadhttps://github.com/sprinfall/webcc/issues/26
sprinfall https://github.com/sprinfall
webcchttps://github.com/sprinfall/webcc
Notifications https://github.com/login?return_to=%2Fsprinfall%2Fwebcc
Fork 63 https://github.com/login?return_to=%2Fsprinfall%2Fwebcc
Star 277 https://github.com/login?return_to=%2Fsprinfall%2Fwebcc
Code https://github.com/sprinfall/webcc
Issues 9 https://github.com/sprinfall/webcc/issues
Pull requests 3 https://github.com/sprinfall/webcc/pulls
Actions https://github.com/sprinfall/webcc/actions
Projects https://github.com/sprinfall/webcc/projects
Wiki https://github.com/sprinfall/webcc/wiki
Security and quality 0 https://github.com/sprinfall/webcc/security
Insights https://github.com/sprinfall/webcc/pulse
Code https://github.com/sprinfall/webcc
Issues https://github.com/sprinfall/webcc/issues
Pull requests https://github.com/sprinfall/webcc/pulls
Actions https://github.com/sprinfall/webcc/actions
Projects https://github.com/sprinfall/webcc/projects
Wiki https://github.com/sprinfall/webcc/wiki
Security and quality https://github.com/sprinfall/webcc/security
Insights https://github.com/sprinfall/webcc/pulse
为啥不提供异步接口https://github.com/sprinfall/webcc/issues/26#top
https://github.com/windflowerly
windflowerlyhttps://github.com/windflowerly
on Sep 29, 2021https://github.com/sprinfall/webcc/issues/26#issue-1010421674
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.