chiark / gitweb /
@@ -9,6 +9,9 @@
authorian <ian>
Sun, 21 May 2000 17:21:58 +0000 (17:21 +0000)
committerian <ian>
Sun, 21 May 2000 17:21:58 +0000 (17:21 +0000)
   Portability/compilation fixes:
   * Move `extern "C" {' to after #include <...>'s.

+  Minor improvements:
+  * Do not print warning if sendto() gives EAGAIN.
+
  --

 adns (0.8) BETA; urgency=medium

changelog
src/transmit.c

index a1e8d759d7edaa13f5b5bb0a225fed4fffca4f94..e45c3572cfee0bb599ae694a2d32dabce30f2624 100644 (file)
--- a/changelog
+++ b/changelog
@@ -9,6 +9,9 @@ adns (0.9) unstable; urgency=low
   Portability/compilation fixes:
   * Move `extern "C" {' to after #include <...>'s.
 
+  Minor improvements:
+  * Do not print warning if sendto() gives EAGAIN.
+
  --
 
 adns (0.8) BETA; urgency=medium
index 7ae2464d4537c55a63072a04c54290eb41aec4e2..08e49d01577f760cf78b4c4d58f08bcab8805de5 100644 (file)
@@ -248,7 +248,7 @@ void adns__query_send(adns_query qu, struct timeval now) {
   r= sendto(ads->udpsocket,qu->query_dgram,qu->query_dglen,0,
            (const struct sockaddr*)&servaddr,sizeof(servaddr));
   if (r<0 && errno == EMSGSIZE) { qu->retries= 0; query_usetcp(qu,now); return; }
-  if (r<0) adns__warn(ads,serv,0,"sendto failed: %s",strerror(errno));
+  if (r<0 && errno != EAGAIN) adns__warn(ads,serv,0,"sendto failed: %s",strerror(errno));
   
   qu->timeout= now;
   timevaladd(&qu->timeout,UDPRETRYMS);