Skip Menu |

This queue is for tickets about the Gepok CPAN distribution.

Report information
The Basics
Id: 69627
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Gepok

People
Owner: Nobody in particular
Requestors: nonsolosoft [...] diff.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.02
Fixed in: (no value)



Subject: using Catalyst 5.89002 it doesn't reply to the browser
use oauth2; # small catalyst 5.89002 app use FindBin qw($Bin); use lib "$Bin/../lib"; use Gepok; my $d = Gepok->new( http_ports => ['127.0.0.1:8085'], # default none https_ports => ['127.0.0.1:8084'], # default none unix_sockets => ['/tmp/gepok.sock'], # default none ssl_key_file => "$Bin/../STAR.diff.key", # required if https_ports specified ssl_cert_file => "$Bin/../STAR.diff.pem", # required if https_ports specified #max_requests_per_child => 100, # default is 1000 start_servers => 0, # default is 3, 0 means don't prefork daemonize => 0, # default is 1, 0 = don't go into background ); # run PSGI application $d->run(oauth2->psgi_app); then I run it with: Show quoted text
> perl -Ilib script/script_above.pl
and it seems to work: [...] [debug] Loaded Path actions: .-------------------------------------+--------------------------------------. | Path | Private | +-------------------------------------+--------------------------------------+ | / | /index | | / | /default | | /auth | /auth | '-------------------------------------+--------------------------------------' [info] oauth2 powered by Catalyst 5.89002 Daemon (PID 5412) started at Wed Jul 20 23:31:28 2011 127.0.0.1 - - [20/07/2011:21:31:30 +0000] "GET /auth" 702271712 - "-" "Wget/1.12 (dragonfly)" but wget doesn't receive the answer. If I run same application using: Show quoted text
> perl script/oauth2_server.pl
it works.
From: sharyanto [...] cpan.org
Thanks for the report. The newly released v0.03 should fix this, I've tried it running a sample Catalyst application successfully. Please note that Gepok still contains some bugs (e.g. not passing Plack server test suite yet, 18 tests still failing). I'm still new with PSGI/ Plack stuffs, but things should improve after a couple more releases. -- sh On Wed Jul 20 17:36:32 2011, nonsolosoft@diff.org wrote: Show quoted text
> use oauth2; # small catalyst 5.89002 app > > use FindBin qw($Bin); > use lib "$Bin/../lib"; > use Gepok; > > my $d = Gepok->new( > http_ports => ['127.0.0.1:8085'], # default none > https_ports => ['127.0.0.1:8084'], # default none > unix_sockets => ['/tmp/gepok.sock'], # default none > ssl_key_file => "$Bin/../STAR.diff.key", # required if > https_ports > specified > ssl_cert_file => "$Bin/../STAR.diff.pem", # required if > https_ports > specified > #max_requests_per_child => 100, # default is 1000 > start_servers => 0, # default is 3, 0 means > don't > prefork > daemonize => 0, # default is 1, 0 = don't go into > background > ); > > # run PSGI application > $d->run(oauth2->psgi_app); > > > then I run it with:
> > perl -Ilib script/script_above.pl
> > and it seems to work: > [...] > [debug] Loaded Path actions: > .------------------------------------- > +--------------------------------------. > | Path | Private > | > +------------------------------------- > +--------------------------------------+ > | / | /index > | > | / | /default > | > | /auth | /auth > | > '------------------------------------- > +--------------------------------------' > > [info] oauth2 powered by Catalyst 5.89002 > Daemon (PID 5412) started at Wed Jul 20 23:31:28 2011 > 127.0.0.1 - - [20/07/2011:21:31:30 +0000] "GET /auth" 702271712 - "-" > "Wget/1.12 (dragonfly)" > > but wget doesn't receive the answer. > > If I run same application using:
> > perl script/oauth2_server.pl
> it works.