GithubHelp home page GithubHelp logo

Comments (5)

xontab avatar xontab commented on July 25, 2024

Looks like this was caused during handshake. Which version of ClickHouse are you using? Can you use the default port 9000?

from clickhouse-net.

killwort avatar killwort commented on July 25, 2024

Either it is new clickhouse server version which I do not support (yet) or there's some protocol desync.
First of all try disabling compression - it is notorious for causing similar troubles due to slight differences in .net and c++ implementations.

from clickhouse-net.

killwort avatar killwort commented on July 25, 2024

Message code 53 is simply the type of message server sends in each packet header. It has no other special meaning. However for a long time clickhouse used these types <=8, so getting 53 here most probably means protocol desync.

from clickhouse-net.

killwort avatar killwort commented on July 25, 2024

I've reproduced this bug and it seems that it is not a bug at all :)
By default my driver uses TCP buffer of size 1024 - exactly the same that can be seen in CH's sources (at least in older versions) and despite that server sends bigger packets (in my case 1500+ bytes). This causes data loss upon receive and infinite waits upon consequent receives.

Bottom line:
To quickly fix without new binary version just set BufferSize=8192 (or whatever value you see reasonable) in your connection string.
Moreover, I'm changing default 1024 ripped from CH sources to 4096 as it definetaly has more sense.

from clickhouse-net.

MagierCapo avatar MagierCapo commented on July 25, 2024

Although this issue has closed ...
I experience the same error "Bad message type 53 received from server" on connection.open();

My ConnString is "Host=localhost;Port=8123;User=default;Password=;BufferSize=8192;"
(I had to SSH-tunnel the Port 8123 to the remoteServer)

We are using .NET driver ClickHouse.Ado v1.1.17 and ClickHouse server version 19.7.3.1 revision 54419
You commented on 21 Jun 2018 "Either it is new clickhouse server version which I do not support (yet) or there's some protocol desync"

Is there an issue with this combination of CH-Versions ?

Or are there any other solutions?

from clickhouse-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.