Skip to content

Commit

Permalink
move this
Browse files Browse the repository at this point in the history
  • Loading branch information
glimberg committed May 7, 2024
1 parent 161ed18 commit 59b2f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcp-proxy/tcp-proxy.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 59b2f73

Please sign in to comment.