HCOLL-22 refactored reading extries away from the client socket, so that they can also be used in the server socket