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:
parent
e85bffc324
commit
0c5f8c6276
Notes:
git
2021-03-09 13:19:32 +09:00
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue