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

Process->getIncrementalOutput() does not flush output buffer #426

Closed
tezhm opened this issue Nov 26, 2021 · 2 comments · Fixed by #428
Closed

Process->getIncrementalOutput() does not flush output buffer #426

tezhm opened this issue Nov 26, 2021 · 2 comments · Fixed by #428
Assignees
Labels

Comments

@tezhm
Copy link

tezhm commented Nov 26, 2021

  • Octane Version: 1.0.18
  • Laravel Version: 8.70.2
  • PHP Version: 8.0.13
  • Server & Version: Swoole / RoadRunner 2.5.6
  • Database Driver & Version:

Description:

StartRoadRunnerCommand->writeServerOutput() queries the worker output via Process->getIncrementalOutput() which internally buffers the worker process output. This buffer is not flushed and thus keeps growing indefinitely.

I have worked around this by calling Process->clearOutput() and Process->clearErrorOutput() after each call to StartRoadRunnerCommand->writeServerOutput().

Steps To Reproduce:

Start octane server for roadrunner binary and log to stderr from workers.

@nunomaduro nunomaduro self-assigned this Nov 26, 2021
@driesvints driesvints added the bug label Nov 26, 2021
@nunomaduro
Copy link
Member

@tezhm What exactly makes you think that "This buffer is not flushed and thus keeps growing indefinitely."? What have you used to conclude this?

@tezhm
Copy link
Author

tezhm commented Nov 26, 2021 via email

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

Successfully merging a pull request may close this issue.

3 participants