Poprawki do obslugi keepalive