addProtocolHandler() doesn't work as expected
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 366
- Forks
- 85
- Avg merge
- 2d 39m
- Merged PRs (30d)
- 6
Description
I wrote a custom stream protocol by extending ProtocolHandler and created a strict binding to my id.
The problem.
It works when I add it while building the host
protocols{
+myprotocolbinding()
}
all stream ops are working as expected.
but when I attach it at runtime with the help of addProtocolhandler() -> Exception while protocol is negotiated. (while resolving controller future)
Am I missing something?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the custom ProtocolHandler with a strict binding, comparing host-time registration through protocols{myprotocolbinding()} with runtime addProtocolHandler(). Trace the protocol negotiation and controller future resolution paths; done means stream operations work in both registration modes without an exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100