Re: Net::DNS broke qpsmtpd-forkserver

[email protected] ("Peter J. Holzer") Thu, 27 Dec 2012 22:21:23 +0100
Newsgroups perl.qpsmtpd
Message-ID <[email protected]>
On 2012-12-27 14:26:28 -0500, Walt Mankowski wrote:
> I just restarted qpsmtpd after a reboot and it was no longer receiving
> mail.  In my logs I saw messages that said
> 
>     method Net::DNS::Header::nextid undefined at ./qpsmtpd-forkserver line 288.
> 
> The problem is in this block of code:
> 
>     # all children should have different seeds, to prevent conflicts
>     srand();
>     for (0 .. rand(65536)) {
>         Net::DNS::Header::nextid();
>     }
[...]
> That fixed my immediate problem, but since I don't really understand
> what that block is trying to do, I don't know if it introduces any
> other problems.

That block was a crude workaround for a bug in Net::DNS. IIRC it has
been fixed a long time ago, so it should be safe to remove that block
completely. I'd have to check the code of Net::DNS to be sure, though.

	hp

-- 
   _  | Peter J. Holzer    | Der eigene Verstand bleibt gefühlt messer-
|_|_) | Sysadmin WSR       | scharf. Aber die restliche Welt blickt's
| |   | [email protected]         | immer weniger.
__/   | http://www.hjp.at/ |   -- Matthias Kohrs in desd
signature.asc (application/pgp-signature, 828 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIVAwUBUNy70vIOSFES/ihdAQL9KBAAi/un68DF1h/xgxtmkIRjO5Go89vv0j06
M/5FC0d1GxyrXqC2KViBEHSF/hlEAvU4712WB0FWcyRhKW95btb4fyF4z2yMu0Lx
DkqwLs5/Xi97NeuQ4hY1nRFbceUoPhGOCYvW66sv5yC+yKMeND+WXZILLLZ+Qyxl
h8G/qBp71WYB88/uE8hn1YOWc8PCZ8OOykvjNqvn8aDzN70DSqZ1gZ9R4LOYk67H
UM+dvkEIXcL4hW24k0zBZ64YcgujJEgddvayZdE763/oqqhYJKUEHhaFkEcbdDnT
eBht+YV9SlO4sxbh899I+eoyZxI60OLgNTCF4zwMiGs5zeWJ+cDGOMm2izyUflYq
fC2pZRqxusUXx2KJ3g0U8bNXDHiBdQYCN7HgH1LW4naJTF+ka0ghxUs6esaJQ9IN
niPOpOTE+zWosBGDY7Gl95dWS7kup2NVD8uemVR1wfSttUoIk8qNd9nJRttJFV/+
VHnYoOvWoXR/zhZsGsVrXmBqEwxsXoZYe9Qjn/IKYncDyl9idKFPj2pZsTmH0p61
K7LvAWxq/vYPQkdb36mx5Y7dc31fwYw5ZkQM6xBAzydQxVhtCB9/D3R8Yqk5L+k8
fSVJFC0Ait9HKlUONWDC5LUD+m+EaDCLvLLyNZVXXg6xfYGiQw0k5H7oyGqoAVrs
6mPAiYAY+v4=
=JgqH
-----END PGP SIGNATURE-----