Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addProtocolHandler() doesn't work as expected #176

Open
SangameswaranRS opened this issue Feb 4, 2021 · 2 comments
Open

addProtocolHandler() doesn't work as expected #176

SangameswaranRS opened this issue Feb 4, 2021 · 2 comments

Comments

@SangameswaranRS
Copy link

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?

@SangameswaranRS
Copy link
Author

I tried writing a UT with Echo() protocol, the same thing is happening. Negotiator.kt -> requestor firesProtocolNegotiationFailed,

Author: @Nashatyrev , any idea if Im missing anything?

@Wawa1996
Copy link

Wawa1996 commented May 7, 2021

I also had the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants