diff --git a/templates/rsyslog-el7.conf-logserver.erb b/templates/rsyslog-el7.conf-logserver.erb
index 6d9caf2fc22c299e59e3113215fc34b3c0450d34..59828031d1c43d32e4671911b1220c5b6e4450d4 100644
--- a/templates/rsyslog-el7.conf-logserver.erb
+++ b/templates/rsyslog-el7.conf-logserver.erb
@@ -189,7 +189,10 @@ module(load="imjournal"  StateFile="imjournal.state")
 ## module(load="imklog")	# Kernel messages comes via systemd journal
 module(load="imuxsock")
 module(load="imudp")
-module(load="imtcp"  maxSessions="4096")	# Sync with $MaxOpenFiles
+module(load="imtcp"
+       maxSessions="4096"	# Sync with $MaxOpenFiles
+       KeepAlive="on"		# GC sockets to dead/rebooted clients
+)
 
 ## input(type="imjournal")	# imjournal does not need input()
 ## input(type="imklog")		# imklog does not need input()
@@ -197,7 +200,9 @@ input(type="imudp"   port="514")
 input(type="imtcp"   port="514")	# syslog port
 
 <% if @relp_port.to_i > 0 -%>
-module(load="imrelp")		# Reliable Event Logging Protocol
+module(load="imrelp"		# Reliable Event Logging Protocol
+       KeepAlive="on"		# GC sockets to dead/rebooted clients
+)
 input(type="imrelp"  port="<%= @relp_port %>")
 <% end -%>