This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig38C58DAF8A596C9D4F1683E5
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable

Dirk van der Zee wrote:
> Hi All,
>=20
> I have written a POP3 protocol-handler which uses the=20
> PerlProcessConnectionHandler. The solution worked fine under=20
> Apache 2.0 and ModPerl 2.0, but after an upgrade to=20
> Apache 2.2 and Mod_Perl 2.0.2 it doesn't work correctly.=20
> (We upgraded from Ubuntu-Dapper to Ubuntu-Gutsy).


That's could be because since Apache 2.0.49, you have need to
set the socket to blocking mode explicitely.

From the test suite:

# starting from Apache 2.0.49 several platforms require you to set
# the socket to a blocking IO mode
my $nonblocking =3D $socket->opt_get(APR::Const::SO_NONBLOCK);
if ($nonblocking) {
$socket->opt_set(APR::Const::SO_NONBLOCK, 0);

# test that we really *are* in the blocking mode
!$socket->opt_get(APR::Const::SO_NONBLOCK)
or die "failed to set blocking mode";
}

> Specifically the problem is that the "sub handler" gets called=20
> only after the client sends a linefeed. In the old situation=20
> the handler started directly. The POP3 protocol needs a "+OK" response
> after the connection has been established.


Are you sure of that, I would think your handler gets called, just that
the $sock->send() gets buffered incorrectly, and not sent to the client
yet.

--=20
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/


--------------enig38C58DAF8A596C9D4F1683E5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHlbsfyzKhB4jDpaURAm3RAKCXo3TpAGV4o3U3SuLR5u Ld3l6+VQCghxjH
vTf98c5pyziQxjqW4TI7U/Q=
=gX9y
-----END PGP SIGNATURE-----

--------------enig38C58DAF8A596C9D4F1683E5--