Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP::Easy::PSGI fails to dispatch request #22

Closed
bbkr opened this issue May 29, 2013 · 4 comments
Closed

HTTP::Easy::PSGI fails to dispatch request #22

bbkr opened this issue May 29, 2013 · 4 comments

Comments

@bbkr
Copy link
Contributor

bbkr commented May 29, 2013

  1. Run following code
use HTTP::Easy::PSGI;
my $app = sub (%env) { print %env.perl; return [ 204, [ ], [ ] ]; };
my $psgi = HTTP::Easy::PSGI.new( host => "", port => 8080);
$psgi.app( $app );
$psgi.run;
  1. Try to connect to server using, for example, wget

Result:

Wget connects and stops on "awaiting response". When wget is killed dispatch is processed to $app and %env is printed.

@supernovus
Copy link

Lovely, more network related breakage. Probably due to horrid hacks working around previous breakage.
I'll dig into it when I have time, if nobody else figures it out first.

@bbkr
Copy link
Contributor Author

bbkr commented May 29, 2013

IO:: namespace had major refactoring last month and removing this hack fixed the issue for me:

https://github.com/supernovus/perl6-http-easy/blob/master/lib/HTTP/Easy.pm6#L58-61

HTTP::Easy responds (tested on OS X 10.7) and I can connect again using wget or LWP::Simple.

I've also made Star 2013.05 RC2 release with those lines removed: http://bbkr.org/~bbkr/rakudo-star-2013.05-rc2.tar.gz.

@supernovus
Copy link

I have removed the hack from my repo.

@pmichaud
Copy link
Contributor

Now solved for the 2013.05 release. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants