
26 Aug
2008
26 Aug
'08
6:52 p.m.
On Tue, Aug 26, 2008 at 3:43 PM, John Van Enk
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.