[Haskell-cafe] Data.ByteString.Lazy.hPut and timeouts?

Bryan O'Sullivan bos at serpentine.com
Thu Jun 3 18:44:25 EDT 2010


On Wed, Jun 2, 2010 at 7:55 PM, Jeremy Shaw <jeremy at n-heptane.com> wrote:

>
> I know that some OSes provide a per socket timeout that I can set in my
> application code (instead of a system-wide timeout that can only be set by
> root). But that does not seem like a very portable solution.


SO_SENDTIMEO is your portable friend (can't remember whether it's exposed by
the network package, though).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100603/3208edb4/attachment.html


More information about the Haskell-Cafe mailing list