From 90fb7c511fb6fc5c917d6738eca25961a52c8a9f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 20 Jul 2020 07:33:28 +0100 Subject: Fix the case of getError/getSendQSize and rewrite the doc comments. --- src/inspsocket.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 9de4a47da..71fdbeb2b 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -125,7 +125,7 @@ void StreamSocket::Close() void StreamSocket::Close(bool writeblock) { - if (getSendQSize() != 0 && writeblock) + if (GetSendQSize() != 0 && writeblock) closeonempty = true; else Close(); @@ -222,7 +222,7 @@ static const int MYIOV_MAX = IOV_MAX < 128 ? IOV_MAX : 128; void StreamSocket::DoWrite() { - if (getSendQSize() == 0) + if (GetSendQSize() == 0) { if (closeonempty) Close(); @@ -265,7 +265,7 @@ void StreamSocket::DoWrite() if (psendq) FlushSendQ(*psendq); - if (getSendQSize() == 0 && closeonempty) + if (GetSendQSize() == 0 && closeonempty) Close(); } @@ -526,7 +526,7 @@ void StreamSocket::AddIOHook(IOHook* newhook) lasthook->SetNextHook(newhook); } -size_t StreamSocket::getSendQSize() const +size_t StreamSocket::GetSendQSize() const { size_t ret = sendq.bytes(); IOHook* curr = GetIOHook(); -- cgit v1.3.1-10-gc9f91