[Libevent-users] thread-safety (and performance)
William Ahern
william at 25thandClement.com
Mon Jan 21 19:28:56 EST 2008
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", __func__);
> EVUTIL_CLOSESOCKET(fd);
> return (-1);
Probably better to use SOMAXCONN instead of an arbitrary number.
More information about the Libevent-users
mailing list