René's URL Explorer Experiment


Title: ChannelBufferInput blocks until full buffer is read · Issue #426 · msgpack/msgpack-java · GitHub

Open Graph Title: ChannelBufferInput blocks until full buffer is read · Issue #426 · msgpack/msgpack-java

X Title: ChannelBufferInput blocks until full buffer is read · Issue #426 · msgpack/msgpack-java

Description: Please take a look at this sample: import java.net.InetSocketAddress; import java.net.Socket; import java.nio.ByteBuffer; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.util.concurrent.E...

Open Graph Description: Please take a look at this sample: import java.net.InetSocketAddress; import java.net.Socket; import java.nio.ByteBuffer; import java.nio.channels.ServerSocketChannel; import java.nio.channels.Sock...

X Description: Please take a look at this sample: import java.net.InetSocketAddress; import java.net.Socket; import java.nio.ByteBuffer; import java.nio.channels.ServerSocketChannel; import java.nio.channels.Sock...

Opengraph URL: https://github.com/msgpack/msgpack-java/issues/426

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ChannelBufferInput blocks until full buffer is read","articleBody":"Please take a look at this sample:\r\n```\r\nimport java.net.InetSocketAddress;\r\nimport java.net.Socket;\r\nimport java.nio.ByteBuffer;\r\nimport java.nio.channels.ServerSocketChannel;\r\nimport java.nio.channels.SocketChannel;\r\nimport java.util.concurrent.ExecutorService;\r\nimport java.util.concurrent.Executors;\r\n\r\nimport org.msgpack.core.MessagePack;\r\nimport org.msgpack.core.MessageUnpacker;\r\n\r\npublic class ChannelUnpackerTest {\r\n\tpublic static void main(String[] args) throws Exception {\r\n\t\ttry (ServerSocketChannel serverChannel = ServerSocketChannel.open()) {\r\n\t\t\tserverChannel.socket().bind(new InetSocketAddress(\"localhost\", 7777));\r\n\t\t\tExecutorService pool = Executors.newFixedThreadPool(10);\r\n\t\t\tfor (int i = 0; i \u003c 10; i++) {\r\n\t\t\t\tpool.execute(() -\u003e {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSocketChannel channel = serverChannel.accept();\r\n\t\t\t\t\t\tchannel.write(ByteBuffer.wrap(new byte[200]));\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t//nothing\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\ttry (Socket socket = new Socket(\"localhost\", 7777)) {\r\n\t\t\t\tMessageUnpacker unpacker = MessagePack.newDefaultUnpacker(socket.getInputStream());\r\n\t\t\t\tunpacker.readPayload(ByteBuffer.allocate(128));\r\n\t\t\t\tSystem.out.println(\"read from socket\");\r\n\t\t\t}\r\n\r\n\t\t\ttry (SocketChannel channel = SocketChannel.open(new InetSocketAddress(\"localhost\", 7777))) {\r\n\t\t\t\tMessageUnpacker unpacker = MessagePack.newDefaultUnpacker(channel);\r\n\t\t\t\tunpacker.readPayload(ByteBuffer.allocate(128));\r\n\t\t\t\tSystem.out.println(\"read from channel\");\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\nThis sample accepts incoming connection, writes 200 bytes to it and waits indefinitely. Consuming first 128 (that is from my real use case - after establishing connection I need to read servers hello message with fixed size of 128 bytes) via MessageUnpacker created via socket InputStream handles this case just fine, however via SocketCnahhel it blocks.\r\n\r\nChanging the server to write large enough data (e.g. 20000 bytes) leads to filling of MessageUnpackers buffer and it can return first 128 bytes.","author":{"url":"https://github.com/isopov","@type":"Person","name":"isopov"},"datePublished":"2017-06-20T08:36:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/426/msgpack-java/issues/426"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:53758a77-540d-4002-6ff2-1a93965ff9e4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA3C:1A082:897677:C86E42:6A579251
html-safe-noncefab1c69907c063a5d9e0c579d1d315f2ba675612e6300ade5414224e29eaea1f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTNDOjFBMDgyOjg5NzY3NzpDODZFNDI6NkE1NzkyNTEiLCJ2aXNpdG9yX2lkIjoiODQ0NjU4MjA4ODgyMDgyMjYwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac68dcd50803679f571204bcd007d8753782ca58ce6ddc588a04d13f8130ebef72
hovercard-subject-tagissue:237133093
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/msgpack/msgpack-java/426/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ef8bcfd0b92a3b1283d4646d0b9b20ec3550ca6271d868bc22d5f2e54db16431/msgpack/msgpack-java/issues/426
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ef8bcfd0b92a3b1283d4646d0b9b20ec3550ca6271d868bc22d5f2e54db16431/msgpack/msgpack-java/issues/426
og:image:altPlease take a look at this sample: import java.net.InetSocketAddress; import java.net.Socket; import java.nio.ByteBuffer; import java.nio.channels.ServerSocketChannel; import java.nio.channels.Sock...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameisopov
hostnamegithub.com
expected-hostnamegithub.com
Nonea87fc68e9bdf22e1c7e48ac6a60b98882f4bb103314b3f26b3460c61fc5441ae
turbo-cache-controlno-preview
go-importgithub.com/msgpack/msgpack-java git https://github.com/msgpack/msgpack-java.git
octolytics-dimension-user_id198264
octolytics-dimension-user_loginmsgpack
octolytics-dimension-repository_id1971346
octolytics-dimension-repository_nwomsgpack/msgpack-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1971346
octolytics-dimension-repository_network_root_nwomsgpack/msgpack-java
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
releasea2198d0212ed703af207673eb4d0868d4f867a5b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/msgpack/msgpack-java/issues/426#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-java%2Fissues%2F426
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%2Fmsgpack%2Fmsgpack-java%2Fissues%2F426
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=msgpack%2Fmsgpack-java
Reloadhttps://github.com/msgpack/msgpack-java/issues/426
Reloadhttps://github.com/msgpack/msgpack-java/issues/426
Reloadhttps://github.com/msgpack/msgpack-java/issues/426
Please reload this pagehttps://github.com/msgpack/msgpack-java/issues/426
msgpack https://github.com/msgpack
msgpack-javahttps://github.com/msgpack/msgpack-java
Notifications https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-java
Fork 323 https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-java
Star 1.5k https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-java
Code https://github.com/msgpack/msgpack-java
Issues 60 https://github.com/msgpack/msgpack-java/issues
Pull requests 5 https://github.com/msgpack/msgpack-java/pulls
Actions https://github.com/msgpack/msgpack-java/actions
Projects https://github.com/msgpack/msgpack-java/projects
Wiki https://github.com/msgpack/msgpack-java/wiki
Security and quality 1 https://github.com/msgpack/msgpack-java/security
Insights https://github.com/msgpack/msgpack-java/pulse
Code https://github.com/msgpack/msgpack-java
Issues https://github.com/msgpack/msgpack-java/issues
Pull requests https://github.com/msgpack/msgpack-java/pulls
Actions https://github.com/msgpack/msgpack-java/actions
Projects https://github.com/msgpack/msgpack-java/projects
Wiki https://github.com/msgpack/msgpack-java/wiki
Security and quality https://github.com/msgpack/msgpack-java/security
Insights https://github.com/msgpack/msgpack-java/pulse
ChannelBufferInput blocks until full buffer is readhttps://github.com/msgpack/msgpack-java/issues/426#top
https://github.com/isopov
isopovhttps://github.com/isopov
on Jun 20, 2017https://github.com/msgpack/msgpack-java/issues/426#issue-237133093
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.