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

Plack::Handler::FCGI SIGPIPE handler #670

Open
defc0n opened this issue Sep 29, 2021 · 0 comments
Open

Plack::Handler::FCGI SIGPIPE handler #670

defc0n opened this issue Sep 29, 2021 · 0 comments

Comments

@defc0n
Copy link

defc0n commented Sep 29, 2021

It is possible the socket it is trying to write to is no longer connected (remote client closed it on us), in which case the following could happen as an example in a Catalyst FCGI app:

Trace begun
__ANON__('Caught SIGPIPE at .../lib/perl5/Plack/Handler/FCGI.pm line 205.^J') called at .../lib/perl5/Plack/Handler/FCGI.pm line 205
Plack::Handler::FCGI::_handle_response('Plack::Handler::FCGI=HASH(0x18bc9898)', 'ARRAY(0x19d195a8)') called at .../lib/perl5/Plack/Handler/FCGI.pm line 154
Plack::Handler::FCGI::__ANON__('ARRAY(0x19d195a8)') called at .../lib/perl5/Plack/Util.pm line 337
Plack::Util::__ANON__('ARRAY(0x19d195a8)') called at .../lib/perl5/Plack/Util.pm line 337
Plack::Util::__ANON__('ARRAY(0x19d195a8)') called at .../lib/perl5/Plack/Util.pm line 337
Plack::Util::__ANON__('ARRAY(0x19d195a8)') called at .../lib/perl5/Plack/Util.pm line 337
Plack::Util::__ANON__('ARRAY(0x19d195a8)') called at .../lib/perl5/Plack/Util.pm line 337
Plack::Util::__ANON__('ARRAY(0x19d195a8)') called at .../lib/perl5/Plack/Util.pm line 337
Plack::Util::__ANON__('ARRAY(0x19d195a8)') called at ...lib/perl5/Plack/Util.pm line 337
Plack::Util::__ANON__('ARRAY(0x19d195a8)') called at .../lib/perl5/Plack/Middleware/HTTPExceptions.pm line 32
Plack::Middleware::HTTPExceptions::__ANON__('ARRAY(0x19d195a8)') called at .../lib/perl5/Plack/Util.pm line 337
Plack::Util::__ANON__('ARRAY(0x19d195a8)') called at .../lib/perl5/Catalyst/Engine.pm line 133
Catalyst::Engine::finalize_body('Catalyst::Engine=HASH(0x15399c50)', 'App=HASH(0x1aad1e80)') called at ...lib/perl5/Catalyst.pm line 2236

Could Plack::Handle::FCGIs catch/gracefully handle this possibility and move on to the next request if so?

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

1 participant