Re: PerlProcessConnectionHandler doesn't respond directly

2008-01-22 Thread Philippe M. Chiasson

Dirk van der Zee wrote:

Hi All,

I have written a POP3 protocol-handler which uses the 
PerlProcessConnectionHandler. The solution worked fine under 
Apache 2.0 and ModPerl 2.0, but after an upgrade to 
Apache 2.2 and Mod_Perl 2.0.2 it doesn't work correctly. 
(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 = $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 
only after the client sends a linefeed. In the old situation 
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.

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



signature.asc
Description: OpenPGP digital signature


Re: How to store keys generated from Crypt::RSA module??

2008-01-22 Thread Jonathan Vanasco


On Jan 6, 2008, at 12:37 PM, Kurt Hansen wrote:

 I'm using Crypt::RSA module for generating public & private keys.  
Now the

problem is that when I'm storing the keys in the database, and again
bringing them to do the signature or verification the Crypt::RSA  
module is
unable to understand the key format. I'm storing the keys in the  
Varchar

field of the MySQL.
Could any body tell me when storing the keys in the databases what  
would be

the type of the field or how to work with the keys??
Try the "blob" type. I think varchar is too short to store the  
private key in a format Crypt:RSA expects. We store the keys in  
files, but store the encrypted data in "blob" records.


i save as TEXT in postgres

you need to make sure that you're reading/writing them correctly.   
some modules use base16, base32, base64 ; its a PITA realizing that  
your issues are entirely with base representation.


Re: compiling problems with mod_perl 2.0.3 and Apache 2.2.6

2008-01-22 Thread John D Groenveld
In message <[EMAIL PROTECTED]>, "Heiko Jansen" writes
:
>No - at least not for me (Solaris 10, 64Bit, Sun cc): 2.0.3 won't build

Working for me so far.

$ cd /tmp/httpd-2.2.8
$ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/sfw/bin \
CC=cc CFLAGS="-m64 -xO3" LDFLAGS="-m64 -L/usr/sfw/lib/64 -R/usr/sfw/lib/64" \
./configure --with-expat=/usr/sfw --with-ssl=/usr/sfw --enable-ssl \
--enable-proxy --enable-rewrite --enable-modules=all --enable-mods-shared=all \
--prefix=/opt/apache2
# make install
Edit apr_rules.mk and config_vars.mk in /opt/apache2/build and add "-m64"
to EXTRA_LDFLAGS
Add "-m64" to LDFLAGS in /opt/apache2/bin/apr-1-config

$ cd /tmp/perl-5.10.0
$ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin \
./Configure -Dprefix=/opt/apache2/perl-5.10.0 -Dcc=cc -Duseshrplib \
-Uusemymalc -Duselargefiles -Ubincompat5005 -Doptimize=-xO3 -Duse64bitall
# make install

$ cd /tmp/mod_perl-2.0.3
$ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin \
/opt/apache2/perl-5.10.0/bin/perl Makefile.PL MP_APXS=/opt/apache2/bin/apxs
# make install

John
[EMAIL PROTECTED]



install mp2 on windows

2008-01-22 Thread Jennifer G.
Hello,

How to install mp2 on windows XP? Does it need a VC complier? But I'm
not familiar with that complier and C/C++ language.
I have apache binary version installed but without modperl.thanks.


Re: install mp2 on windows

2008-01-22 Thread Foo JH

Read this:
http://perl.apache.org/docs/2.0/os/win32/install.html

Jennifer G. wrote:

Hello,

How to install mp2 on windows XP? Does it need a VC complier? But I'm
not familiar with that complier and C/C++ language.
I have apache binary version installed but without modperl.thanks.