[Issue #17] Add check for keep-alive connections