socket: Handle READY_TO_SEND event