obd: support deploy.py syntax
This commit is contained in:
18
deps/easy/src/io/easy_negotiation.c
vendored
18
deps/easy/src/io/easy_negotiation.c
vendored
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user