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 ar
On Sun, Jan 06, 2013 at 09:39:48PM +0100, Bj?rn K. wrote:
at a second glance:
next_thread = (next_thread + 1) % NUM_THREADS; <- are you sure this is
working as intended?
***
To unsubscribe, send an e-mail to majord...@freehaven.
That piece of code should distribute the incoming connections over the
threads (I want to change that code later to select the thread with
the lowest number of handled connections). If I don't use this code
and use instead
bev = bufferevent_openssl_socket_new(thread_base[0], sock, client_ctx, ...
t