fix KeepAliveClient accessing illegal address when other thread registing dest
This commit is contained in:
parent
aac6323f83
commit
b94fb4c4c7
@ -668,6 +668,9 @@ int ret = OB_SUCCESS;
|
||||
for (int i = 0; i < regist_dest_count; i++) {
|
||||
ObTimeGuard timeguard_clent_send("net_keepalive_client_send", 100 * 1000);
|
||||
struct DestKeepAliveState *rs = ATOMIC_LOAD(®ist_dests_[i]);
|
||||
if (NULL == rs) {
|
||||
continue;
|
||||
}
|
||||
if (now - rs->last_access_ts_ > SERVER_EXPIRED_TIME) {
|
||||
if (rs->last_write_ts_ > 0) {
|
||||
char addr_buf[OB_IP_PORT_STR_BUFF] = {'\0'};
|
||||
|
Loading…
x
Reference in New Issue
Block a user