apply tcp keepalive to serving sockets

This commit is contained in:
James F. Carter
2018-01-10 13:49:22 +00:00
parent 24f1e62a73
commit 1d5b315f17
4 changed files with 49 additions and 0 deletions

View File

@@ -21,6 +21,9 @@ struct client_tbl_entry {
#define MAX_NBD_CLIENTS 16
#define CLIENT_KEEPALIVE_TIME 30
#define CLIENT_KEEPALIVE_INTVL 10
#define CLIENT_KEEPALIVE_PROBES 3
struct server {
/* The flexnbd wrapper this server is attached to */
struct flexnbd * flexnbd;