-
Notifications
You must be signed in to change notification settings - Fork 83
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
Connection Closed: Unable to decode header #49
Comments
What driver and its version is connecting to the proxy? |
It looks like you might be using java-driver
diff --git a/proxy.go b/proxy.go
index 5af2412..b7b073c 100644
--- a/proxy.go
+++ b/proxy.go
@@ -83,7 +83,7 @@ func main() {
}
p := proxy.NewProxy(ctx, proxy.Config{
- Version: primitive.ProtocolVersion4,
+ Version: primitive.ProtocolVersion3,
Resolver: resolver,
ReconnectPolicy: proxycore.NewReconnectPolicy(),
NumConns: 1, However, this is not an actual fix though. My thought is the proxy should allow clients to be connected to the backend using multiple protocol versions simultaneously. It could have a session cache for each version.
|
I've created issues to track handling these two issues: |
This fixes both issues #52 enough to allow connecting older versions of drivers; however, the server/client still share the same protocol, but the proxy can support multiple protocols at one time for different client connection. For schema under |
"com.datastax.cassandra" % "cassandra-driver-core" % "2.1.10.3" |
Released https://github.com/datastax/cql-proxy/releases/tag/v0.0.4. Let me know if this fixes your issue. |
Thank you @mpenick |
When try to make connection with proxy service. It logs a message that "unable to decode hearder" and close the connection. Need to fix is soon. Please find the attach error's screenshot.
When we try to run it with --debug.
@mpenick
The text was updated successfully, but these errors were encountered: