[jdev] [jadmin] Important bugfix for jadc2s

Matthias Wimmer m at tthias.net
Mon Mar 29 15:44:59 CST 2004


If you are a Jabber server admin and using jadc2s as your client
connection manager, this is an important bugfix for you, that will
increase the stability for client connections to your server.

The problem existed in jadc2s since 2002-10-22. At this time there has
been introduced an output statment for debugging reasons. The problem
with it is that jadc2s will close the standard output on startup so the
debugging output will be sent to the client that connected on the socket
that got the file descriptor 1 (which is the standard output normally).
If the affected user connected using SSL this will even break the
connection to this user as the client's SSL implementation will notice
that the security layer SSL provides has been broken (the output is send
to the connection without being encrypted by SSL). If the connection
does not use SSL it depends on the client implementation if the extra
CDATA is just ignored or causes an error as well.

To fix the problem, please delete the following line from conn.c in
jadc2s' main directory:
                printf("Reading %d bytes\n", read_len);

A patch against release 0.9.0 of jadc2s can be found at the end of this
mail. If you are using the CVS version of jadc2s, you can simply update
to the latest version.

Tot kijk

diff -Naur jadc2s-0.9.0/clients.c jadc2s-
--- jadc2s-0.9.0/clients.c	2003-10-13 00:58:25.000000000 +0200
+++ jadc2s-	2004-03-29 23:33:17.000000000 +0200
@@ -505,7 +505,6 @@
                     return 0;
-                printf("Reading %d bytes\n", read_len);
                 len = _read_actual(c, fd, buf, read_len);
                 return conn_read(c, buf, len);
Fon: +49-(0)70 0770 07770       http://matthias.wimmer.name/
HAM: DB1MW                      xmpp:mawis at charente.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20040329/132c1932/attachment-0005.pgp>
-------------- next part --------------
jadmin mailing list
jadmin at jabber.org

More information about the JDev mailing list