This retry will jump to the top of this 'begin' so your retry will retry client_socket.sysread(...)