add config variable for keep alive frequency
Merge pull request #880 from BM5k/add-keep-alive-config

add config variable for keep alive frequency