Hello,
I have a weird problem with the program below.
I compile it on Mac OS 10.8.2 and if I link it against the default
OpenSSL version (0.9.8) it ignores the results of the verify callback.
If I link it against the newest OpenSSL version available via Mac
Ports, it works as expected (if the cert
I misunderstood the way how your code works. After rereading it, I
think I will use it in my program. Thanks.
2013/1/8 Mark Ellzey :
> On Tue, Jan 08, 2013 at 11:30:00AM +0100, Bj?rn K. wrote:
>> The posted code compiles on my machine without modifications. Thus I
>> wonder why you have to do some
This is the valgrind --tool=helgrind output. The first part appears
for every connection to the server:
==5477== Possible data race during write of size 4 at 0x602707c by thread #1
==5477==at 0x412DFC: bufferevent_incref_and_lock_ (bufferevent.c:653)
==5477==by 0x412E4F: bufferevent_enable
think I do not
really profit from multithreading this way because all of the ssl
stuff is done in the main thread.
2013/1/8 Nir Soffer :
>
> On Jan 8, 2013, at 12:55 AM, Björn K. wrote:
>
> That piece of code should distribute the incoming connections over the
> threads (I want to ch
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
Using valgrind I got the following report (I couldn't produce a
segmentation fault):
login@adrastea-debian:~/test$ sudo valgrind ./simple==24900==
Memcheck, a memory error detector
==24900== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==24900== Using Valgrind-3.6.0.SVN-Debian a
I now tried setting up locking callbacks. But my programm still
crashes while stress testing.
I've attached the current code and a stack trace from gdb.
I don't know if it's an openssl or libevent related problem, but I
think I set the locking functions up correctly.
Regards
Björn
/* Program rec
; i < NUM_THREADS; i++) {
pthread_create(&thread[i], NULL, worker_function, (void
*)&thread_base[i]);
}
event_base_loop(evbase, 0);
return 0;
}
2012/12/17 Nick Mathewson :
> On Sun, Dec 16, 2012 at 10:52 AM, Björn K. wrote:
>> Hello,
>>
>> I'm
Hello,
I'm trying to write a simple https server which utilizes multiple cpu cores.
I call evthread_use_pthreads() and create several pthreads. My
acceptcb and the thread worker functions are below.
For some simple test cases it works. If I use a tool like apache ab
for a perfomance test, I get so