That went too fast, it can't work the way I suggested, below works and is
tested:
(dm rssToPages> @
(let (Str (or (next) (exclient~call (; This rssLink) "" 5)) Fd (pipe
(prin Str)))
(for A (rss~parseFrom Fd)
(let Url
(req!> '+Url
'link (a; A 'htmlUrl)
Thanks Alex,
I've changed the look to your #1 suggestion now:
(dm rssToPages> @
(let Str (or (next) (exclient~call (; This rssLink) "" 5))
(for A (rss~parseFrom
(pipe
(prin Str)
(let Url
(req!> '+Url
Hi Henrik,
> I'm running into too many file descriptors (again), or rather a file
> descriptor leak.
> ...
> (for A (rss~parseFrom (pipe (prin Str)))
(pipe (prin Str))) is probably the culprit.
'pipe' has two forms of invocation:
1. (pipe exe . prg) executes 'prg', and cleans up everything