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

some error or failed in Mojo::Reactor::EV #491

Closed
ChinaXing opened this issue May 17, 2013 · 9 comments
Closed

some error or failed in Mojo::Reactor::EV #491

ChinaXing opened this issue May 17, 2013 · 9 comments
Assignees

Comments

@ChinaXing
Copy link

Write failed: illegal file descriptor or filehandle (either no attached file descriptor or
illegal value):  at /home/admin/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/
Mojo/Reactor/EV.pm line 43.

Use of uninitialized value in subroutine entry at /home/admin/perl5/perlbrew/perls/perl-
5.16.3/lib/site_perl/5.16.3/Mojo/Reactor/EV.pm line 43.

these message frequently printed when i use hyponate -f start the application.

printed even no request come in .

@kraih
Copy link
Member

kraih commented May 17, 2013

Thanks for your contribution, but i'm afraid it is impossible for us to replicate the problem from the information you have provided.

@kraih kraih closed this as completed May 17, 2013
@ChinaXing
Copy link
Author

this appear when client use HTTP/1.0, you can test it :)

curl -0 -v localhost:3000 

the -0 means use HTTP version 1.0 protocol

@marcusramberg
Copy link
Member

fwiw, I see these too in one of my apps.

Marcus Ramberg
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Saturday 18. May 2013 at 13:11, chinaxing wrote:

this appear when client use HTTP/1.0, you can test it :)


Reply to this email directly or view it on GitHub (#491 (comment)).

@kraih
Copy link
Member

kraih commented May 18, 2013

@ChinaXing Afraid i'm still unable to replicate your problem.
@marcusramberg Great, then you should be able to replicate it.

@kraih kraih reopened this May 18, 2013
@ghost ghost assigned marcusramberg May 18, 2013
@kraih kraih closed this as completed May 18, 2013
@ChinaXing
Copy link
Author

you can replicate ,just start a small mojolicious app use morbo, than use curl command what i mentioned above to make request,then the server side will print out the failure message .

just try, you will see the staff ,

@kraih
Copy link
Member

kraih commented May 19, 2013

@ChinaXing All i can do so far is confirm that on OS X 10.8.3 with Perl 5.18, Mojolicious 4.0 and EV 4.15 everything works flawless.

@ChinaXing
Copy link
Author

oh, I found that because of I use Plugin AccessLog.

when i disable the plugin, the failure message disapeared :)

@ChinaXing
Copy link
Author

I white a test app, on mac osx the failure message is same on linux :

EV : 4.15
Mojo: 4.0
perl 5.18 or 5.16

use Mojolicious::Lite;

app->hook(before_dispatch => sub {
  my $tx = shift;
  $tx->on( finish => sub {
  print "tx finished ! \n";
  });
});

get '/:any' => sub {
      shift->render( text => "OK" );
};

app->start;

save as t.pl, then run the app :

perl t.pl daemon 

then, use curl to request :

 curl -0 -v localhost:3000/a

the server will print those :

[Sun May 19 16:08:29 2013] [debug] GET "/a".
[Sun May 19 16:08:29 2013] [debug] Routing to a callback.
[Sun May 19 16:08:29 2013] [debug] 200 OK (0.000757s, 1321.004/s).
tx finished ! 
Use of uninitialized value $fd in hash element at /home/admin/perl5/perlbrew/perls/perl-5.18.0-RC4/lib/site_perl/5.18.0/Mojo/Reactor/EV.pm line 34.
Use of uninitialized value in subroutine entry at /home/admin/perl5/perlbrew/perls/perl-5.18.0-RC4/lib/site_perl/5.18.0/Mojo/Reactor/EV.pm line 43.
Write failed: illegal file descriptor or filehandle (either no attached file descriptor or illegal value):  at /home/admin/perl5/perlbrew/perls/perl-5.18.0-RC4/lib/site_perl/5.18.0/Mojo/Reactor/EV.pm line 43.

@kraih
Copy link
Member

kraih commented May 19, 2013

Thanks, fixed.

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