-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zero-sized files in tarballs do not call end
handler
#145
Comments
The stream for empty files is created here: Line 174 in ca0e270
and the stream has already been ended here: Line 12 in ca0e270
so there's no |
mattgodbolt
added a commit
to compiler-explorer/compiler-explorer
that referenced
this issue
Jan 2, 2023
It appears that having a zero-sized file won't call our `next()` handler which means we wedge forever and eventually time out. This is a workaround. Upstream issue filed as mafintosh/tar-stream#145
mattgodbolt
added a commit
to compiler-explorer/compiler-explorer
that referenced
this issue
Jan 2, 2023
* Handle zero-sized files It appears that having a zero-sized file won't call our `next()` handler which means we wedge forever and eventually time out. This is a workaround. Upstream issue filed as mafintosh/tar-stream#145
mattgodbolt
added a commit
to compiler-explorer/compiler-explorer
that referenced
this issue
Jan 4, 2023
* Handle zero-sized files It appears that having a zero-sized file won't call our `next()` handler which means we wedge forever and eventually time out. This is a workaround. Upstream issue filed as mafintosh/tar-stream#145
mattgodbolt
added a commit
to compiler-explorer/compiler-explorer
that referenced
this issue
Jan 24, 2023
* Handle zero-sized files It appears that having a zero-sized file won't call our `next()` handler which means we wedge forever and eventually time out. This is a workaround. Upstream issue filed as mafintosh/tar-stream#145
Fixed in 3.1.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are extracting an archive with zero-sized files in it, then the stream your
entry
handler is passed has already beenend
-ed. This means theon('end')
event is not triggered.Our code looks something like:
The text was updated successfully, but these errors were encountered: