Improve client packet handling by handling more then 1 packet if the socket is ready.