Implementando keepalive connection