Re: [Libevent-users] Crash in evhttp_send_reply_chunk()

2012-05-31 Thread Alap Kumar Sinha
Alap From: Nir Soffer To: libevent-us...@freehaven.net Sent: Thursday, May 31, 2012 10:11 AM Subject: Re: [Libevent-users] Crash in evhttp_send_reply_chunk() The example code you sent is expected to crash and burn randomly: - You use multiple threads, but you do not configure libevent to

Re: [Libevent-users] Crash in evhttp_send_reply_chunk()

2012-05-31 Thread Nir Soffer
The example code you sent is expected to crash and burn randomly: - You use multiple threads, but you do not configure libevent to use multithreading - You do not synchronize the threads in your own code. For example, accessing startSend and req from multiple threads. - You do not handle the conne