[tpop3d-discuss]Re: bad file descriptor from select in tpop3d

Arkadiusz Miskiewicz arekm at pld-linux.org
Sun, 4 Jun 2006 14:26:06 +0200


On Sunday 04 June 2006 11:21, Martin Blapp wrote:
> Hi,
>
> >> I have now (close to final) version of the patch:
> >> http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/tpop3d-libevent.patch?=
re
> >>v=3D1.3 no timer event (we reschedule events after processing I/O which
> >> fills buffers
> >> etc).
>
> Hmm, even with the last patch and latest libevent cvs version it works the
> first 10 seconds, but then I see more and more tpop3d childs hanging arou=
nd
> using cpu. This is on FreeBSD 5.5 using kqueue(2).

Could you check what it does when it hangs? gdb or strace like tool under b=
sd

You can also rebuild libevent with #define USE_DEBUG in log.h and then run=
=20
tpop3d -d to see what libevent does.

Don't have FreeBSD here :(

> Martin

=2D-=20
Arkadiusz Mi=B6kiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/