added debug info

This commit is contained in:
wangyu- 2017-09-12 23:34:55 -05:00
parent b4bd385e88
commit a4b8c5f5b9

View File

@ -593,7 +593,7 @@ int create_new_udp(int &new_udp_fd)
mylog(log_debug, "created new udp_fd %d\n", new_udp_fd); mylog(log_debug, "created new udp_fd %d\n", new_udp_fd);
int ret = connect(new_udp_fd, (struct sockaddr *) &remote_addr_in, slen); int ret = connect(new_udp_fd, (struct sockaddr *) &remote_addr_in, slen);
if (ret != 0) { if (ret != 0) {
mylog(log_warn, "udp fd connect fail\n"); mylog(log_warn, "udp fd connect fail %d %s\n",ret,strerror(errno));
close(new_udp_fd); close(new_udp_fd);
return -1; return -1;
} }