-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable TCP keep alive for redox (#717)
* helps keep connections between clipper and redis for a long idle time on k8s
- Loading branch information
Showing
5 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff -urN redox.org/src/client.cpp redox/src/client.cpp | ||
--- redox.org/src/client.cpp 2019-05-31 18:58:11.104997558 +0900 | ||
+++ redox/src/client.cpp 2019-05-31 20:34:21.826154449 +0900 | ||
@@ -57,6 +57,7 @@ | ||
|
||
// Connect over TCP | ||
ctx_ = redisAsyncConnect(host.c_str(), port); | ||
+ redisEnableKeepAlive(&(ctx_->c)); | ||
|
||
if (!initHiredis()) | ||
return false; |