move this

This commit is contained in:
Grant Limberg 2024-05-06 19:31:02 -07:00
parent 161ed18e48
commit 59b2f73541
No known key found for this signature in database
GPG Key ID: 8F2F97D3BE8D7735

View File

@ -271,8 +271,8 @@ struct TcpProxyService
Client &c = *((Client *)*uptr);
if (c.tcpWritePtr) {
long n = phy->streamSend(sock,c.tcpWriteBuf,c.tcpWritePtr);
Metrics::tcp_bytes_out += n;
if (n > 0) {
Metrics::tcp_bytes_out += n;
memmove(c.tcpWriteBuf,c.tcpWriteBuf + n,c.tcpWritePtr -= (unsigned long)n);
if (!c.tcpWritePtr)
phy->setNotifyWritable(sock,false);