Re: Conduit missing closing file handles
Tom Ellis <[email protected]> Fri, 1 May 2026 16:28:03 +0100
| Newsgroups | gmane.comp.lang.haskell.cafe |
|---|---|
| Message-ID | <afTGgykQ21abNw6b@cloudinit-builder> |
On Fri, May 01, 2026 at 04:53:33PM +0200, Henning Thielemann wrote:
> On Fri, 1 May 2026, Tom Ellis wrote:
> > On Fri, May 01, 2026 at 11:26:34AM +0200, Henning Thielemann wrote:
> >
> > > My program would also require a Tar library.
> >
> > Can you please try this Bluefin version of convertZipToTar and confirm
> > whether it does what you want without leaking handles?
> >
> > https://github.com/tomjaguarpaw/ad/blob/master/BluefinZipTar/BluefinZipTar.hs#L43-L65
>
> Ok great, I tried and now I get an error from tar-conduit:
>
> zip2tar-bluefin: Uncaught exception tar-conduit-0.4.1-3860201d51f91b125377913a0184ee22827a51e5a78eec1b1230907a77ca3cf7:Data.Conduit.Tar.Types.TarCreateException:
>
> TarCreationError "<tarPayload>: Too much payload (32752) for file with size
> (412): avmedia/res/av02048.png"
>
> HasCallStack backtrace:
> throwIO, called at ./Control/Concurrent/Async/Internal.hs:667:24 in async-2.2.6-d55fde70b8a48643acd98dd03fa271c8842e964017add43e3365c491d02ab733:Control.Concurrent.Async.Internal
Thanks for trying it. Do you have some code you can share that shows
how to plug it all together into an executable? In particular, I'm
not sure what I should use for the argument of type:
Zip.EntrySelector -> Zip.EntryDescription -> CTar.FileInfo
Tom
_______________________________________________
Haskell-Cafe mailing list -- [email protected]
To (un)subscribe, modify options or view archives go to:
Only members subscribed via the mailman list are allowed to post.