Client: lua
socket_send() resumes each retry after the last byte sent and reports a
timeout if its retries run out before all of the data is sent. TSocket:write()
raises a TTransportException when the send fails, as TSocket:read() does for a
failed receive.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>