1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/zlib] Resume zstream if available [Bug #10961]

This commit is contained in:
wanabe 2021-03-07 21:22:47 +09:00
parent e85bffc324
commit 0c5f8c6276
Notes: git 2021-03-09 13:19:32 +09:00

View file

@ -1095,6 +1095,12 @@ loop:
RB_NOGVL_UBF_ASYNC_SAFE);
#endif
/* retry if no exception is thrown */
if (err == Z_OK && args.interrupt) {
args.interrupt = 0;
goto loop;
}
if (flush != Z_FINISH && err == Z_BUF_ERROR
&& z->stream.avail_out > 0) {
z->flags |= ZSTREAM_FLAG_IN_STREAM;