Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: net/spdy/spdy_framer.cc

Issue 9185036: Handle Z_BUF_ERROR as a non-fatal error while incrementally decompressing (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.cc
===================================================================
--- net/spdy/spdy_framer.cc (revision 117344)
+++ net/spdy/spdy_framer.cc (working copy)
@@ -1526,7 +1526,7 @@
decomp->next_out = reinterpret_cast<Bytef*>(buffer);
decomp->avail_out = arraysize(buffer);
int rv = DecompressHeaderBlockInZStream(decomp);
- if (rv != Z_OK) {
+ if (rv != Z_OK && rv != Z_BUF_ERROR) {
wtc 2012/01/12 23:49:38 Z_BUF_ERROR means "no progress is possible". With
ramant (doing other things) 2012/01/13 00:14:58 Wan-Teh and I had stepped through the code and we
set_error(SPDY_DECOMPRESS_FAILURE);
DLOG(WARNING) << "inflate failure: " << rv;
processed_successfully = false;
« no previous file with comments | « no previous file | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698