about summary refs log tree commit homepage
path: root/http.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-03-03 09:13:22 +0000
committerEric Wong <normalperson@yhbt.net>2012-03-03 09:52:45 +0000
commite9fada6db32ad1f2402e5993c6eb6fec55d4c174 (patch)
treef221a24d5130d7b63a8ab96f65a8694f79deaaeb /http.c
parent5112629a1c0a4612ede6b031aa3c302f128e9ff4 (diff)
downloadcmogstored-e9fada6db32ad1f2402e5993c6eb6fec55d4c174.tar.gz
We didn't have rcapa in the past, but now we do, so use it.
rsize is only used for stashing buffers in per-client (fdmap)
areas.
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index 73e2a88..0f54da0 100644
--- a/http.c
+++ b/http.c
@@ -117,8 +117,8 @@ static enum mog_next http_queue_step(struct mog_fd *mfd)
         if (http->rbuf) {
                 /* request got pipelined, resuming now */
                 buf_len = http->rbuf->rsize;
-                http->rbuf->rsize = http->rbuf->rcapa;
                 assert(http->offset <= buf_len && "bad offset from pipelining");
+                assert(buf_len <= http->rbuf->rcapa && "bad rsize stashed");
                 if (http->offset < buf_len)
                         goto parse;
         }