[tpop3d-discuss] long login delay

Chris Lightfoot chris at ex-parrot.com
Wed, 7 Jan 2004 14:37:54 +0000


On Tue, Jan 06, 2004 at 12:54:40PM +0100, Ian Armstrong=A0 wrote:
>=20
> On=A006-Jan-2004,=A0Chris Lightfoot=A0<chris@ex-parrot.com>=A0wrote:=20
>=20
> |which version? how heavily loaded is the server? anything
> |interesting in the logs?
>=20
> I am using the latest version "tpop3d-1.5.3". My server does not have a
> heavy load, I only have a few active users. The=20
> logs seem to be normal. Here is a sample just after I logged in:

I am confused by this:

> bash-2.05b# tail -n 20 /var/log/mail
    [...]
> Jan  6 12:38:33 server tpop3d[5936]: listeners_post_select: client [6]1=
27.0.0.1/expressmail.dk: connected to local address 127.0.0.1:110
> Jan  6 12:38:33 server tpop3d[5936]: authcontext_new_user_pass: began s=
ession for `ika@expressmail.dk' with mysql; uid 8, gid 12
> Jan  6 12:38:33 server tpop3d[5936]: fork_child: [6]ika@expressmail.dk(=
127.0.0.1): began session for `ika@expressmail.dk' with mysql; child PID =
is 5940
> Jan  6 12:38:33 server tpop3d[5940]: maildir_new: scanned maildir /home=
/vmail/expressmail.dk/i/ika/ (92 messages) in 0.002s
> Jan  6 12:38:34 server tpop3d[5940]: connections_post_select: client [6=
]ika@expressmail.dk(127.0.0.1): finished session for `ika@expressmail.dk'=
 with mysql
> Jan  6 12:38:34 server tpop3d[5940]: connections_post_select: client [6=
]ika@expressmail.dk(127.0.0.1): disconnected; 73/4871 bytes read/written

This whole session lasts somewhere between one and two
seconds, from the time the client connects to the time
that the client logs out, having completed the session.
Is the long delay something you're observing in your web
mail front end?

The other sessions in your log extract seem to be about
the same length.

> Until now I have been using Courier which uses a filesystem pipe to
> connect to mysql:"MYSQL_SOCKET /tmp/mysql.sock". The=20
> only thing I can think of, is that the delay lies in my network setup.
> Instead of the pipe, tpop3d is using TCP, and=20
> this is causing the delay. I am using a webmail client, and the reason =
I
> think this, is that I get the "waiting" message=20
> when I try to log in: "waiting for www.expressmail.dk".=20

unlikely -- per above, there doesn't seem to be a
significant delay between connecting and authentication by
MySQL.

--=20
``We apologise for the lack of seats. This is due to the volume of passen=
gers.''
  (announcement on train)