[ejabberd] ejabberd 1.1.1 LDAP timeout sorrows

Simon Morris simon.morris at cmtww.com
Tue Sep 19 17:02:29 MSD 2006


On Tue, 2006-09-19 at 03:09 +0100, Evgeniy Khramtsov wrote:

> Unfortunately, ejabberd doesn't open LDAP connections in keepalive
> mode.
> But you can simple change this though. Apply the patch:
> --- ejabberd.orig/src/eldap/eldap.erl   2006-09-15 08:26:53.000000000
> +1000
> +++ ejabberd/src/eldap/eldap.erl        2006-09-19 12:05:33.000000000
> +1000
> @@ -808,7 +808,7 @@
>  %
> %-----------------------------------------------------------------------
>  connect_bind(S) ->
>      Host = next_host(S#eldap.host, S#eldap.hosts),
> -    TcpOpts = [{packet, asn1}, {active, true}, binary],
> +    TcpOpts = [{packet, asn1}, {active, true}, {keepalive, true},
> binary],
>      case gen_tcp:connect(Host, S#eldap.port, TcpOpts) of
>         {ok, Socket} ->
>             case bind_request(Socket, S) of
> 
> And recompile ejabberd.

Thank you.

I've applied the patch and rebuilt ejabberd (this time on Debian using
dpkg-build)

Would you intend this patch to go into the main release of ejabberd for
future versions or do I need to patch it when I upgrade?

I will let the list know how I get on with the patched version

Thanks

~sm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.jabber.ru/pipermail/ejabberd/attachments/20060919/4c64640d/attachment.pgp


More information about the ejabberd mailing list