From a1cddaf6714f030b4351ff7db09957aead48e343 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Wed, 25 Oct 2017 02:29:11 -0500 Subject: [PATCH] change log --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index fd243c8..0a2cab2 100644 --- a/main.cpp +++ b/main.cpp @@ -571,7 +571,7 @@ int client_event_loop() socklen_t udp_new_addr_len = sizeof(sockaddr_in); if ((data_len = recvfrom(local_listen_fd, data, max_data_len, 0, (struct sockaddr *) &udp_new_addr_in, &udp_new_addr_len)) == -1) { - mylog(log_error,"recv_from error,this shouldnt happen,err=%s\n",strerror(errno)); + mylog(log_error,"recv_from error,this shouldnt happen,err=%s,but we can try to continue\n",strerror(errno)); continue; //mylog(log_error,"recv_from error,this shouldnt happen at client\n"); //myexit(1); @@ -834,7 +834,7 @@ int server_event_loop() socklen_t udp_new_addr_len = sizeof(sockaddr_in); if ((data_len = recvfrom(local_listen_fd, data, max_data_len, 0, (struct sockaddr *) &udp_new_addr_in, &udp_new_addr_len)) == -1) { - mylog(log_error,"recv_from error,this shouldnt happen,err=%s\n",strerror(errno)); + mylog(log_error,"recv_from error,this shouldnt happen,err=%s,but we can try to continue\n",strerror(errno)); continue; //myexit(1); };