influxdata / influxdata/influxdb
How to reuse tcp connection
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
How to reuse tcp connection
I am choosing a time series database with excellent performance, and I have chosen influxdb as my first choice.But I encountered a situation
I use the java sdk client to write data to influxdb2, but I find that every time I write a piece of data, there will be a tcp connection in the state of time_wait, which is too strange
Why does this happen and how can I avoid it, or achieve tcp connection multiplexing
influxdb version is 2.6.1 and use default config
java demo:

sdk version: influxdb-client-java:6.7.0
happened

Contributor guide
Research direction
Start with the Java demo in the issue and the influxdb-client-java 6.7.0 behavior against InfluxDB 2.6.1 using the default configuration. Investigate whether each write creates a TCP connection and determine the documented or expected way to reuse connections; done when the cause and a reproducible resolution are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100