obd: support deploy.py syntax

This commit is contained in:
obdev
2023-04-22 14:41:23 +00:00
committed by ob-robot
parent 7edaa0071b
commit 5ac41d01f7
2 changed files with 12 additions and 11 deletions

View File

@ -13,9 +13,9 @@
#include "io/easy_negotiation.h"
#include "io/easy_log.h"
#include "io/easy_socket.h"
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
const uint64_t g_support_eio_maigc[] = {
0x12567348667799aa,
0x1237734866785431,
@ -215,9 +215,9 @@ int net_send_negotiate_message(uint8_t negotiation_enable, int fd, uint64_t magi
if ((ret = easy_socket_error(fd) ) != 0) {
easy_info_log("retry! socket status is abnormal yet, fd:%d, addr:%s, err:%d.", fd, addr_str, ret);
if (conn_has_error) *conn_has_error = 1;
return ret;
}
return ret;
}
while ((send_bytes = send(fd, buf, encode_len, 0)) < 0 && errno == EINTR);
if (send_bytes != encode_len) {
@ -225,9 +225,9 @@ int net_send_negotiate_message(uint8_t negotiation_enable, int fd, uint64_t magi
return -1;
} else {
easy_info_log("eio:%#llx, thread index:%hhu, send:%d bytes, send negotiation success. addr:%s!", (unsigned long long)ne_msg.msg_body.eio_magic,
ne_msg.msg_body.io_thread_index, encode_len, addr_str);
}
}
ne_msg.msg_body.io_thread_index, encode_len, addr_str);
}
}
} else {
easy_info_log("negotiation not enabled!(addr:%s)", addr_str);
}