serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1711634 - /serf/trunk/buckets/http2_frame_buckets.c
Date Sat, 31 Oct 2015 13:57:23 GMT
Author: rhuijben
Date: Sat Oct 31 13:57:23 2015
New Revision: 1711634

URL: http://svn.apache.org/viewvc?rev=1711634&view=rev
Log:
* buckets/http2_frame_buckets.c
  (serf_http2_unpad_read): Following up on r1711632, avoid an unneeded
    read right before EOF when padsize is 0.

Modified:
    serf/trunk/buckets/http2_frame_buckets.c

Modified: serf/trunk/buckets/http2_frame_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/buckets/http2_frame_buckets.c?rev=1711634&r1=1711633&r2=1711634&view=diff
==============================================================================
--- serf/trunk/buckets/http2_frame_buckets.c (original)
+++ serf/trunk/buckets/http2_frame_buckets.c Sat Oct 31 13:57:23 2015
@@ -487,7 +487,7 @@ serf_http2_unpad_read(serf_bucket_t *buc
   status = serf_bucket_read(ctx->stream, requested, data, len);
   if (! SERF_BUCKET_READ_ERROR(status))
     {
-      if (*len <= ctx->payload_remaining)
+      if (*len < ctx->payload_remaining)
         ctx->payload_remaining -= *len;
       else
         {



Mime
View raw message