XX-10758 Proxy high cpu utilization when disabling Bria's TLS account

Sometimes, when reading EOF from socket, proxy was entering in a loop
sending empty keep-alives messages to itself. To fix this proxy should
check for keep alives only if EOF was not read.