tests: Break if all compressed header input processed in nghttp2_buf

This commit is contained in:
Tatsuhiro Tsujikawa 2015-05-27 00:33:24 +09:00
parent 59e6272ba4
commit a0a5f4f93e
1 changed files with 4 additions and 0 deletions

View File

@ -192,6 +192,10 @@ ssize_t inflate_hd(nghttp2_hd_inflater *inflater, nva_out *out,
if (inflate_flags & NGHTTP2_HD_INFLATE_FINAL) {
break;
}
if ((inflate_flags & NGHTTP2_HD_INFLATE_EMIT) == 0 &&
nghttp2_buf_len(&bp) == 0) {
break;
}
}
}