[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] multithreading problem



On Sun, Jan 06, 2013 at 09:39:48PM +0100, Bj?rn K. wrote:
> Using valgrind I got the following report (I couldn't produce a
> segmentation fault):
> 
> ==25006== Warning: invalid file descriptor 1019 in syscall accept()
> [warn] Error from accept() call: Too many open files
> 
> The memory leaks are the result of connections which are not closed
> correctly. In a real implementation I would use a timer event to clean
> up these connections.
> 


You can increase the number of open file descriptors by using ulimit -n,
but from what I see, you are probably running out of memory. use
--leak-check=full and fix your code.

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.