PHPFastCGI / FastCGIDaemon

A FastCGI daemon written in PHP.
http://phpfastcgi.github.io/
MIT License
331 stars 16 forks source link

Fails with large POST requests #30

Closed gaaf closed 6 years ago

gaaf commented 6 years ago

When a large POST request comes in, my script dies. Input is read over STDIN. Smaller request have no issue.

` PHP Notice: Undefined offset: 0 in /home/alex/projects/fcgi/vendor/phpfastcgi/fastcgi-daemon/src/Driver/Userland/Connection/StreamSocketConnectionPool.php on line 70 PHP Fatal error: Uncaught TypeError: Argument 2 passed to PHPFastCGI\FastCGIDaemon\Driver\Userland\ConnectionHandler\ConnectionHandlerFactory::createConnectionHandler() must implement interface PHPFastCGI\FastCGIDaemon\Driver\Userland\Connection\ConnectionInterface, null given, called in /home/alex/projects/fcgi/vendor/phpfastcgi/fastcgi-daemon/src/Driver/Userland/UserlandDaemon.php on line 102 and defined in /home/alex/projects/fcgi/vendor/phpfastcgi/fastcgi-daemon/src/Driver/Userland/ConnectionHandler/ConnectionHandlerFactory.php:16 Stack trace:

0 /home/alex/projects/fcgi/vendor/phpfastcgi/fastcgi-daemon/src/Driver/Userland/UserlandDaemon.php(102): PHPFastCGI\FastCGIDaemon\Driver\Userland\ConnectionHandler\ConnectionHandlerFactory->createConnectionHandler(Object(PHPFastCGI\FastCGIDaemon\CallbackWrapper), NULL)

1 /home/alex/projects/fcgi/vendor/phpfastcgi/fastcgi-daemon/src/Driver/Userland/UserlandDaemon.php(74): PHPFastCGI\FastCGIDaemon\Driver\Use in /home/alex/projects/fcgi/vendor/phpfastcgi/fastcgi-daemon/src/Driver/Userland/ConnectionHandler/ConnectionHandlerFactory.php on line 16

`

AndrewCarterUK commented 6 years ago

Thanks for this and the PR.

This will be tagged as v0.10.1