Skip to content

Commit 3636c56

Browse files
DOC-5064 removed incorrect tcpKeepAlive section
1 parent bdf109c commit 3636c56

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

content/develop/clients/jedis/produsage.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ progress in implementing the recommendations.
2929
{{< checklist-item "#client-side-caching" >}}Client-side caching{{< /checklist-item >}}
3030
{{< checklist-item "#timeouts" >}}Timeouts{{< /checklist-item >}}
3131
{{< checklist-item "#health-checks" >}}Health checks{{< /checklist-item >}}
32-
{{< checklist-item "#tcp-keepalive" >}}TCP keepalive{{< /checklist-item >}}
3332
{{< checklist-item "#exception-handling" >}}Exception handling{{< /checklist-item >}}
3433
{{< checklist-item "#dns-cache-and-redis" >}}DNS cache and Redis{{< /checklist-item >}}
3534
{{< /checklist >}}
@@ -103,27 +102,6 @@ try (Jedis jedis = jedisPool.getResource()) {
103102
Health checks help to detect problems as soon as possible without
104103
waiting for a user to report them.
105104

106-
### TCP keepalive
107-
108-
[TCP keepalive](https://en.wikipedia.org/wiki/Keepalive) is a technique
109-
where TCP packets are periodically sent on an otherwise idle connection
110-
to check that it is still working. You can enable TCP keepalive for a
111-
connection using an option on the connection config builder:
112-
113-
```java
114-
JedisClientConfig clientConfig = DefaultJedisClientConfig.builder()
115-
.connectionTimeoutMillis(2000)
116-
.socketTimeoutMillis(2000)
117-
.tcpKeepAlive(true)
118-
.build();
119-
120-
JedisPool pool = new JedisPool(poolConfig, "redis-host", clientConfig);
121-
```
122-
123-
TCP keepalive can be especially useful to detect when unused connections
124-
in a [connection pool](#connection-pooling) have been dropped due to
125-
inactivity.
126-
127105
### Exception handling
128106

129107
Redis handles many errors using return values from commands, but there

0 commit comments

Comments
 (0)