[client-v2,jdbc-v2] Remove default socket snd/rcv buffer

Open
#3,121 1 comment 0 reactions 1 assignee View on GitHub

@polyglotAI-bot is already working on this.

Since Sep 11, 2026.

Assessment

This issue has not been assessed yet.

Description

Description

There are two parameters in com.clickhouse.client.api.ClientConfigProperties:

  • SOCKET_RCVBUF_OPT("socket_rcvbuf", Integer.class, "804800")
  • SOCKET_SNDBUF_OPT("socket_sndbuf", Integer.class,"804800")

They are setting TCP socket receive and send buffers. This is for any socket created by the client.
Values of this parameters should be calculated depending on network available throughput and very depend on environment. So modern system have auto configuration to reach performance. Besides this parameters are limited by OS. Setting them to specific values in application turn off auto-configuration.

We should remove this values and document that setting them is not recommended until user know what she is doing.

Dominant language
Java
Stars
1.6k
Forks
637
Avg merge
2d 12h
Merged PRs (30d)
28

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClickHouse/clickhouse-java

All issues in ClickHouse/clickhouse-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.