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

TCP documentation #45

Closed
plutov opened this issue Jul 7, 2016 · 2 comments
Closed

TCP documentation #45

plutov opened this issue Jul 7, 2016 · 2 comments

Comments

@plutov
Copy link
Contributor

plutov commented Jul 7, 2016

Hi, I am using ClickHouse in Go, currently via HTTP, but I want TCP transport too. Do you have any documentation about it? Now I have this error (I am doing something wrong):

echo "SELECT 1" | nc localhost 9000
eDB::NetException/DB::NetException: Unexpected packet from client�0. clickhouse-server(StackTrace::StackTrace()+0xe) [0xfd7c7e]
1. clickhouse-server(DB::Exception::Exception(std::string const&, int)+0x1e) [0xf72a6e]
2. clickhouse-server(DB::TCPHandler::receiveHello()+0xa92) [0xf8de92]
3. clickhouse-server(DB::TCPHandler::runImpl()+0x1b8) [0xf90818]
4. clickhouse-server(DB::TCPHandler::run()+0x17) [0xf91957]
5. clickhouse-server(Poco::Net::TCPServerConnection::start()+0x7) [0x2a84b47]
6. clickhouse-server(Poco::Net::TCPServerDispatcher::run()+0x107) [0x2a8f837]
7. clickhouse-server(Poco::PooledThread::run()+0x7f) [0x307860f]
8. clickhouse-server(Poco::ThreadImpl::runnableEntry(void*)+0x87) [0x3036087]
9. /lib/x86_64-linux-gnu/libpthread.so.0(+0x8182) [0x7fd479fdd182]
10. /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7fd4795f847d]
@alexey-milovidov
Copy link
Member

TCP transport is more specific, we don't want to expose details.

Despite we have full compatibility of protocol of different versions of client and server, we want to keep the ability to "break" it for very old clients. And that protocol is not too clean to make a specification.

@plutov
Copy link
Contributor Author

plutov commented Jul 8, 2016

Thanks, I got it.

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