]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/comm.cc
Do not make bogus recvmsg(2) calls when closing UDS sockets.
[thirdparty/squid.git] / src / comm.cc
index b6ecf05d5bcba34e46981d00e66c5ae213374fb4..4ca20ffac017bf40077143ef33b3703c734d0170 100644 (file)
@@ -110,7 +110,7 @@ comm_empty_os_read_buffers(int fd)
 
     /* prevent those nasty RST packets */
     char buf[SQUID_TCP_SO_RCVBUF];
-    if (fd_table[fd].flags.nonblocking) {
+    if (fd_table[fd].flags.nonblocking && fd_table[fd].type != FD_MSGHDR) {
         while (FD_READ_METHOD(fd, buf, SQUID_TCP_SO_RCVBUF) > 0) {};
     }
 #endif