On Tue, Aug 26, 2008 at 3:43 PM, John Van Enk <[EMAIL PROTECTED]> wrote:
> Perhaps you'll want to continue with the hGetLine setup in one thread
> (assuming the NNTP data is line delimited), then in another, parse the data,
> then in a third, respond.

Sorry if my writing was unclear. I think hGetLine is really unsuited
for doing anything with data from a network. It's like the Haskell
equivalent of gets(3). I think it's only suitable for quick tests or
toy programs. The only way I can think to make it a little safer is to
wrap it in a timeout, and that'd still be really bad.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to