ConnectionPool.SuroConnection connection = connectionPool.chooseConnection();
if (connection == null) {
continue;
}
try {
Result result = connection.send(messageSet);
if (result != null && result.getResultCode() == ResultCode.OK && result.isSetMessage()) {
sent = true;
connectionPool.endConnection(connection);
retried = i > 0;
break;
} else {