You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2018/08/30 17:12:55 UTC
[trafficserver] branch 8.0.x updated: Fix for when multiplexer gets
a 0 byte read event
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/8.0.x by this push:
new 943107b Fix for when multiplexer gets a 0 byte read event
943107b is described below
commit 943107b3cdeea6ea5b10244ac8bedae3d68c3415
Author: Bryan Call <bc...@apache.org>
AuthorDate: Wed Aug 29 15:44:37 2018 -0700
Fix for when multiplexer gets a 0 byte read event
(cherry picked from commit e6d6753a81b86902b97f888767e8c477b6927f7e)
---
plugins/experimental/multiplexer/chunk-decoder.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/plugins/experimental/multiplexer/chunk-decoder.cc b/plugins/experimental/multiplexer/chunk-decoder.cc
index 26c5f77..e976ac4 100644
--- a/plugins/experimental/multiplexer/chunk-decoder.cc
+++ b/plugins/experimental/multiplexer/chunk-decoder.cc
@@ -107,7 +107,9 @@ ChunkDecoder::decode(const TSIOBufferReader &r)
{
const int l = TSIOBufferReaderAvail(r);
- if (l < size_) {
+ if (l == 0) {
+ return 0;
+ } else if (l < size_) {
size_ -= l;
return l;
}