[Libevent-users] thread-safety (and performance)

2008-01-21 Thread Tani Hosokawa
When initiating HTTP requests in a multi-threaded process, under any significant load you will start finding horrible memory corruption problems, sometimes resulting in bad requests and sometimes resulting in core dumps. Also, under any significant load, you'll probably find that you are

Re: [Libevent-users] thread-safety (and performance)

2008-01-21 Thread William Ahern
On Mon, Jan 21, 2008 at 04:14:08PM -0800, Tani Hosokawa wrote: snip @@ -1999,7 +1999,7 @@ if ((fd = bind_socket(address, port)) == -1) return (-1); - if (listen(fd, 10) == -1) { + if (listen(fd, 8192) == -1) { event_warn(%s: listen,