Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 09 11:11
    andig commented #541
  • Jan 09 11:11

    andig on 2.3.0

    (compare)

  • Jan 09 11:10

    andig on master

    Add Symfony 6 support Remove S… Merge pull request #541 from da… (compare)

  • Jan 09 11:10
    andig closed #541
  • Jan 09 11:08

    andig on 2.2.3

    (compare)

  • Jan 08 22:51
    dave-redfern commented #541
  • Jan 08 22:51
    dave-redfern commented #541
  • Jan 08 10:31
    andig commented #541
  • Jan 08 10:29
    andig labeled #544
  • Jan 08 10:29
    andig labeled #542
  • Jan 08 10:29
    andig labeled #541
  • Jan 08 10:29
    andig labeled #513
  • Jan 08 10:29
    andig labeled #511
  • Jan 08 10:28
    andig commented #478
  • Jan 08 10:27
    andig commented #529
  • Jan 08 10:27
    andig commented #511
  • Jan 08 10:26
    andig closed #538
  • Jan 08 10:26

    andig on master

    Disable keep-alive in HTTP 1.1 … Merge pull request #542 from ma… (compare)

  • Jan 08 10:26
    andig closed #542
  • Jan 08 10:25

    andig on master

    Avoid busy waiting when no work… Merge pull request #544 from ma… (compare)

Martin Lonský
@visitek
\React\Socket\Connection has bufferSize to default 4096... There is no way to set it to higher value... POST data is stripped now
$data = stream_socket_recvfrom($stream, $this->bufferSize);
We send json data, but is is truncated while it is bigger tahn 4096 :(
Martin Lonský
@visitek
Ohh.. it is not needed finally
data are emitted multiply ... incoming data are reading from stream by buffer size.. So before running app in handleRequest should be data collected with reflecting Content-Length
..solved, sorry
Jury
@lcjury
Hi, is php-pm still alive?
Franz Liedke
@franzliedke
@lcjury Yeah, big things are happening here right now: php-pm/php-pm#226
apocello2008
@apocello2008
Hello! I write issue about "Attempted to load class "AppKernel" from the global namespace." 2 weeks ago, but for now don't have any answers. Maybe somebody can help with this error?
apocello2008
@apocello2008

So, i trying setup basic app, based on PSR-7 and Zend\Stratigility. I repeat example from php-pm/php-pm-psr7 but i have error:

 Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to Zend\Stratigility\MiddlewarePipe::process() must be an instance of Interop\Http\ServerMiddleware\DelegateInterface, null given, called in php-pm/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 86 in php-pm/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php:99

Pls. i need help =(

Adil Houmadi
@AdilHoumadi
Hello, is there any implementation of php-pm for apigility ?
Marc J. Schmidt
@marcj
@AdilHoumadi no, I don’t think so
Adil Houmadi
@AdilHoumadi
Is it possible to receive support questions ? I've run into problem for which I see no possible alternative.
I adapt the php-pm/php-pm-zend to use it with zend apigility, and it seems that the ppm cache requests. here is the output with adapted code
https://gist.github.com/AdilHoumadi/fbf28fe1361c4afc63564f16cdcc3220
Thanks in advance
Marc J. Schmidt
@marcj
@AdilHoumadi ppm does not cache stuff
vuliad
@vuliad
Hello. There are again breaking of composer (
is there any quick workaround now?
i see php-pm/php-pm#283 this was merged for future checkings (strange but ok..)
Richard Hagen
@Richard87
Hi guys! Do you have a recommandation for a replacement for StreamedResponse?
This is what I have now, and I think this is failing in PHP-PM:
    public function createResponse(FilesystemInterface $filesystem): StreamedResponse
    {
        $response = new StreamedResponse();
        $response->headers->makeDisposition(ResponseHeaderBag::DISPOSITION_INLINE,$this->getAsciiFilename());
        $response->headers->set("Content-Type",$this->getMimeType());
        $response->headers->set("Content-Length", $this->getSize());
        $response->setCallback(function () use ($filesystem) {
            $resource = $this->readStream($filesystem);
            fpassthru($resource);
            fclose($resource);
        });
        return $response;
    }
Marc J. Schmidt
@marcj
@Richard87 heyho, I don' think it should fail, it just doen't stream
Richard Hagen
@Richard87
@marcj Hmm, I get an "headers already sent" error when I return a StreamedResponse, and I can't imagine why...
Marc J. Schmidt
@marcj
@Richard87 oh mh, we don't have tests for that, so I don't know. Maybe StreamedResponse prints something to stdout directly
do you see where the output started in the "headers already sent" error?
Richard Hagen
@Richard87
Hi @marcj , thanks for answering :)
Here is the full stacktrace:
string(4217) "Symfony\Component\Debug\Exception\ContextErrorException: Warning: Cannot modify header information - headers already sent by (output started at /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Response.php:1276) in /ppm/vendor/php-pm/httpkernel-adapter/Bridges/HttpKernel.php:231
Stack trace:
#0 /ppm/vendor/php-pm/httpkernel-adapter/Bridges/HttpKernel.php(101): PHPPM\Bridges\HttpKernel->mapResponse(Object(Symfony\Component\HttpFoundation\StreamedResponse))
#1 /ppm/vendor/php-pm/php-pm/src/ProcessSlave.php(406): PHPPM\Bridges\HttpKernel->handle(Object(React\Http\Io\ServerRequest))
#2 /ppm/vendor/php-pm/php-pm/src/ProcessSlave.php(367): PHPPM\ProcessSlave->handleRequest(Object(React\Http\Io\ServerRequest))
#3 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(52): PHPPM\ProcessSlave->onRequest(Object(React\Http\Io\ServerRequest), Object(Closure))
#4 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(48): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 3)
#5 /ppm/vendor/react/http/src/Middleware/RequestBodyParserMiddleware.php(34): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#6 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(52): React\Http\Middleware\RequestBodyParserMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#7 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(48): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 2)
#8 /ppm/vendor/react/http/src/Middleware/RequestBodyBufferMiddleware.php(44): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#9 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(52): React\Http\Middleware\RequestBodyBufferMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#10 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(48): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 1)
#11 /ppm/vendor/react/http/src/Middleware/LimitConcurrentRequestsMiddleware.php(91): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#12 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(52): React\Http\Middleware\LimitConcurrentRequestsMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#13 /ppm/vendor/react/http/src/Io/MiddlewareRunner.php(40): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 0)
#14 /ppm/vendor/react/http/src/StreamingServer.php(236): React\Http\Io\MiddlewareRunner->__invoke(Object(React\Http\Io\ServerRequest))
#15 /ppm/vendor/react/http/src/StreamingServer.php(178): React\Http\StreamingServer->handleRequest(Object(React\Socket\Connection), Object(React\Http\Io\ServerRequest))
#16 /ppm/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Http\StreamingServer->React\Http\{closure}(Object(React\Http\Io\ServerRequest), '')
#17 /ppm/vendor/react/http/src/Io/RequestHeaderParser.php(59): Evenement\EventEmitter->emit('headers', Array)
#18 /ppm/vendor/react/http/src/Io/RequestHeaderParser.php(47): React\Http\Io\RequestHeaderParser->parseAndEmitRequest(792)
#19 /ppm/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Http\Io\RequestHeaderParser->feed('GET /dashboard/...')
#20 /ppm/vendor/react/stream/src/Util.php(71): Evenement\EventEmitter->emit('data', Array)
#21 /ppm/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Stream\Util::React\Stream\{closure}('GET /dashboard/...')
#22 /ppm/vendor/react/stream/src/DuplexResourceStream.php(193): Evenement\EventEmitter->emit('data', Array)
#23 [internal function]: React\Stream\DuplexResourceStream->handleData(Resource id #2619, Object(React\EventLoop\StreamSelectLoop))
#24 /ppm/vendor/react/event-loop/src/StreamSelectLoop.php(236): call_user_func(Array, Resource id #2619, Object(React\EventLoop\StreamSelectLoop))
#25 /ppm/vendor/react/event-loop/src/StreamSelectLoop.php(205): React\EventLoop\StreamSelectLoop->waitForStreamActivity(96262)
#26 /ppm/vendor/php-pm/php-pm/src/ProcessSlave.php(326): React\EventLoop\StreamSelectLoop->run()
#27 /tmp/dbgoOgHAf(25): PHPPM\ProcessSlave->run()
#28 {main}"
[09/Jan/2018:16:46:06 +0000] 127.0.0.1 - - "GET /dashboard/17/download_certificate HTTP/1.0" 500 38 "http://localhost/dashboard/17/"
Marc J. Schmidt
@marcj
and what is in line /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Response.php:1276 ?
Damien Grass
@DGrass
Anyone about? Can't seem to get this working with my Laravel install!
Don't worry. I'm stupid and I fixed my issue.
Ben Johnson
@cbj4074
@DGrass How so? :)
(And what was the issue?)
Sergey
@NBZ4live
Hi. Anybody knows out of the box about issues with php-pm/php-pm-httpkernel and Lumen 5.5?
I get the following error:
Error: Call to undefined method Laravel\Lumen\Application::getProvider() in /ppm/vendor/php-pm/httpkernel-adapter/Bootstraps/Laravel.php:128
Marcelo Gomes
@celogomes_twitter
Hi im trying to use ppm and laravel I get error 500, using this command line docker run -v pwd:/var/www -p 8080:80 phppm/nginx --bootstrap=laravel --static-directory=public/, If I run php artisan serve I dont get error
HDVinnie
@HDVinnie
is this stable for use in laravel 5.6 application?
Ben Johnson
@cbj4074
@HDVinnie :wave:
(and I have no idea, just saying hi! lol)
HDVinnie
@HDVinnie
lol
thinking it might be suitable for UNIT3D in a performent way
Ben Johnson
@cbj4074
For sure... I'm curious what you discover. I've had an eye on this project for a couple years now.
Just haven't dipped a toe in yet!
HDVinnie
@HDVinnie
quiet in here
Luiz Machado
@odahcam
Amazing work guys!
Michael
@gamelife1314
@NBZ4live lumen 5.6 is ok ?
lumen 5.6
Starting PHP-PM with 8 workers, using StreamSelectLoop ...
8 workers (starting at 5501) up and ready. Application is ready at http://127.0.0.1:8080/
--- Worker 5501 stderr ---
string(4263) "Error: Call to undefined method Laravel\Lumen\Application::getProvider() in /var/www/vendor/php-pm/httpkernel-adapter/Bootstraps/Laravel.php:128
Stack trace:
#0 /var/www/vendor/php-pm/httpkernel-adapter/Bootstraps/Laravel.php(119): PHPPM\Bootstraps\Laravel->resetProvider('\\Illuminate\\Coo...')
#1 /var/www/vendor/php-pm/httpkernel-adapter/Bridges/HttpKernel.php(113): PHPPM\Bootstraps\Laravel->postHandle(Object(Laravel\Lumen\Application))
#2 /var/www/vendor/php-pm/php-pm/src/ProcessSlave.php(431): PHPPM\Bridges\HttpKernel->handle(Object(React\Http\Io\ServerRequest))
#3 /var/www/vendor/php-pm/php-pm/src/ProcessSlave.php(392): PHPPM\ProcessSlave->handleRequest(Object(React\Http\Io\ServerRequest))
#4 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(49): PHPPM\ProcessSlave->onRequest(Object(React\Http\Io\ServerRequest))
#5 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(54): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 3)
#6 /var/www/vendor/react/http/src/Middleware/RequestBodyParserMiddleware.php(34): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#7 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(59): React\Http\Middleware\RequestBodyParserMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#8 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(54): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 2)
#9 /var/www/vendor/react/http/src/Middleware/RequestBodyBufferMiddleware.php(44): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#10 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(59): React\Http\Middleware\RequestBodyBufferMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#11 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(54): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 1)
#12 /var/www/vendor/react/http/src/Middleware/LimitConcurrentRequestsMiddleware.php(91): React\Http\Io\MiddlewareRunner->React\Http\Io\{closure}(Object(React\Http\Io\ServerRequest))
#13 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(59): React\Http\Middleware\LimitConcurrentRequestsMiddleware->__invoke(Object(React\Http\Io\ServerRequest), Object(Closure))
#14 /var/www/vendor/react/http/src/Io/MiddlewareRunner.php(40): React\Http\Io\MiddlewareRunner->call(Object(React\Http\Io\ServerRequest), 0)
#15 /var/www/vendor/react/http/src/StreamingServer.php(237): React\Http\Io\MiddlewareRunner->__invoke(Object(React\Http\Io\ServerRequest))
#16 /var/www/vendor/react/http/src/StreamingServer.php(176): React\Http\StreamingServer->handleRequest(Object(React\Socket\Connection), Object(React\Http\Io\ServerRequest))
#17 /var/www/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Http\StreamingServer->React\Http\{closure}(Object(React\Http\Io\ServerRequest), '')
#18 /var/www/vendor/react/http/src/Io/RequestHeaderParser.php(59): Evenement\EventEmitter->emit('headers', Array)
#19 /var/www/vendor/react/http/src/Io/RequestHeaderParser.php(47): React\Http\Io\RequestHeaderParser->parseAndEmitRequest(134)
#20 /var/www/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Http\Io\RequestHeaderParser->feed('GET / HTTP/1.1\r...')
#21 /var/www/vendor/react/stream/src/Util.php(71): Evenement\EventEmitter->emit('data', Array)
#22 /var/www/vendor/evenement/evenement/src/Evenement/EventEmitterTrait.php(123): React\Stream\Util::React\Stream\{closure}('GET / HTTP/1.1\r...')
#23 /var/www/vendor/react/stream/src/DuplexResourceStream.php(193): Evenement\EventEmitter->emit('data', Array)
#24 [internal function]: React\Stream\DuplexResourceStream->handleData(Resource id #241, Object(React\EventLoop\StreamSelectLoop))
#25 /var/www/vendor/react/event-loop/src/StreamSelectLoop.php(236):
Sergey
@NBZ4live
@gamelife1314 I made it work by extending the Adapter and override the resetProvider method
But we don’t use it in production yet, so no guarantees=)
Marc Morera
@mmoreram
Hello people :D
I'm adding php-pm in an open source project called Apisearch
and I have two small questions
Has anyone any clue about why the PM is only using one Worker even if I define 4, 6 or 10
?