From 2bbebab5950c3d22462ef435d7f7a64b066bc32d Mon Sep 17 00:00:00 2001 From: Ebenezer-group Date: Mon, 11 Dec 2023 02:46:30 -0600 Subject: [PATCH] Tweaks --- src/cmwBuffer.hh | 1 - src/tiers/cmwA.cc | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmwBuffer.hh b/src/cmwBuffer.hh index 47119b8..3c49619 100644 --- a/src/cmwBuffer.hh +++ b/src/cmwBuffer.hh @@ -560,7 +560,6 @@ templateclass BufferCompressed:public SendBuffer,publ } bool flush (){ - if(this->index>0)compress(); return all(Write(this->sock_,compBuf,compIndex)); } diff --git a/src/tiers/cmwA.cc b/src/tiers/cmwA.cc index 5f2b4bc..b8f2eae 100644 --- a/src/tiers/cmwA.cc +++ b/src/tiers/cmwA.cc @@ -100,6 +100,7 @@ void login (cmwCredentials const& cred,SockaddrWrapper const &sa,bool signUp=fal ::sleep(30); } + cmwBuf.compress(); while(!cmwBuf.flush()); ::sctp_paddrparams pad{}; pad.spp_address.ss_family=AF_INET;