From f0c48196e2bcc767ae40e2d6161aa76af538d0e1 Mon Sep 17 00:00:00 2001 From: Otto Date: Mon, 15 Mar 2021 12:08:54 +0100 Subject: [PATCH] change in writenWithTimeout should not be needed anymore as sdig now uses tcpiohandler with blocking sockets --- pdns/sstuff.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pdns/sstuff.hh b/pdns/sstuff.hh index ced296ed6e..c253046521 100644 --- a/pdns/sstuff.hh +++ b/pdns/sstuff.hh @@ -279,9 +279,7 @@ public: while(bytes) { ret=::write(d_socket, ptr, bytes); if(ret < 0) { - // some systems (e.g. OpenBSD) return ENOTCONN on non-blocking sockets on which connect *has been* called - // we have to wait for the opportunity to write after the connect is done - if (errno == EAGAIN || errno == ENOTCONN) { + if(errno == EAGAIN) { ret=waitForRWData(d_socket, false, timeout, 0); if(ret < 0) throw NetworkError("Waiting for data write"); -- 2.47.2