On 30 January 2012 14:22, Rob Stewart wrote:
> Hi,
>
> I'm experiencing the "accept: resource exhausted (Too many open
> files)" exception when trying to use sockets in my Haskell program.
>
> The situation:
> - Around a dozen Linux machines running my Haskell program,
> transmitting thousands of
Rob Stewart wrote:
> transmitting thousands of messages to each other, sometimes within a small
> period of time.
Either SCTP or UDP seems far more appropriate than TCP (which I
assume, hopefully safely, to be at work here) for this task.
___
Haskell-C
What you can try
- reduce amount of threads running at the same time - thus accept less
connections. AFAIK the OS has a buffer caching the connection request
for a while - thus this may just work.
Using STM it would be trivial to implement it: try incrementing a var,
if it is > 100 fail. I
Hi,
I'm experiencing the "accept: resource exhausted (Too many open
files)" exception when trying to use sockets in my Haskell program.
The situation:
- Around a dozen Linux machines running my Haskell program,
transmitting thousands of messages to each other, sometimes within a
small period of t