[Haskell-cafe] hSetBuffering woes
Donald Bruce Stewart
dons at cse.unsw.edu.au
Tue Jun 19 21:54:53 EDT 2007
> Bryan O'Sullivan wrote:
> >Eric wrote:
> >>I'm writing a simple HTTP server and am trying to implement the POST
> >That's a rather general problem statement, indeed :-) For an
> >application like this, I'd suggest that explicit resource management
> >is the way to go, and that you should not be using hGetContents at
> >all, under any guise. For example, any scheme involving reading an
> >entire stream is going to do completely the wrong thing in the face of
> >HTTP keepalive. Also, code that leaves open sockets piling up in
> >drifts, to eventually be shoveled up by the RTS, is going to be
> >trivially easy to DoS.
> Are there any good resources/tutorials on Haskell network programming?
Some articles have been written here,
Intro stuff mostly.
See also HAppS, and Simon Marlow's concurrent webserver paper.
More information about the Haskell-Cafe