From c8c3697fa00fd468b0e19b89b46ae3f01ea9779e Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Fri, 9 Aug 2024 15:02:11 +0200 Subject: [PATCH] write buffer --- EthernetInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EthernetInterface.cpp b/EthernetInterface.cpp index 423d60e..3e1a51a 100644 --- a/EthernetInterface.cpp +++ b/EthernetInterface.cpp @@ -239,13 +239,14 @@ void EthernetInterface::loop2() { DIAG(F("Ethernet outboundRing socket=%d error"), socketOut); } else if (socketOut >= 0) { int count=outboundRing->count(); - if (Diag::ETHERNET) DIAG(F("Ethernet reply socket=%d, count=:%d"), socketOut,count); { char tmpbuf[count+1]; // one extra for '\0' for(int i=0;iread(); } tmpbuf[count]=0; + if (Diag::ETHERNET) + DIAG(F("Ethernet reply socket=%d, count=%d, buf:%e"), socketOut,count,tmpbuf); clients[socketOut].write(tmpbuf,count); } // do trust write does its thing and not flush