Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpKernel] Dont close the reponse stream in debug#19114

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromnicolas-grekas:no-flush-on-debug
Jun 20, 2016

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJun 20, 2016
edited
Loading

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#19078
LicenseMIT
Doc PR-

Because it'sterminate's job to clean the state, not theResponse's,
and because the current behavior prevents getting any output on trailing errors on FPM especially.

hason reacted with thumbs up emoji
@xabbuh
Copy link
Member

👍

1 similar comment
@fabpot
Copy link
Member

👍

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit2fbc200 intosymfony:2.7Jun 20, 2016
fabpot added a commit that referenced this pull requestJun 20, 2016
…as-grekas)This PR was merged into the 2.7 branch.Discussion----------[HttpKernel] Dont close the reponse stream in debug| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#19078| License       | MIT| Doc PR        | -Because it's `terminate`'s job to clean the state, not the `Response`'s,and because the current behavior prevents getting any output on trailing errors on FPM especially.Commits-------2fbc200 [HttpKernel] Dont close the output stream in debug
@nicolas-grekasnicolas-grekas deleted the no-flush-on-debug branchJune 20, 2016 11:27
@pyrech
Copy link
Contributor

Isn't this a BC break for those using only the HTTP Foundation component?

@stof
Copy link
Member

it is indeed a BC break

@nicolas-grekas
Copy link
MemberAuthor

@pyrech did you experience any issue or are you just wondering?

@pyrech
Copy link
Contributor

I have a small application that uses theResponse::send() method and expects thatfastcgi_finish_request() will be called. So I will need to update my code :) Really not a big deal for me but still a tiny BC break

@stof
Copy link
Member

IMO, we should revert this in 2.7. Tiny BC break are not acceptable in patch releases IMO (except when necessary to fix security issues according to our guidelines, but this is not a security issue)

teohhanhui and jakzal reacted with thumbs up emoji

@stof
Copy link
Member

btw, this change means that the behavior of your kernel.terminate event listener will be different in dev and prod, which might not be good. We should look into logging errors there, but still respecting the behavior of finishing the fastcgi request, to be closer to the prod

teohhanhui, jakzal, JEDIBC, and Chataignier reacted with thumbs up emoji

@nicolas-grekas
Copy link
MemberAuthor

Debug mode is already significantly different from prod, and it is far more important to give feedback to the dev in case of any errors.

@jakzal
Copy link
Contributor

Looks like this actually broke something in PHPBB (see the referenced issue on their side).

@JEDIBC
Copy link

I agree with@stof . This behavior modification of kernel.terminate in dev is not a good thing. Furthermore the description in the changelog is absolutely not indicative of the repercussion on kernel.terminate.

@fabpot
Copy link
Member

reverted

fabpot added a commit that referenced this pull requestJul 13, 2016
…g (nicolas-grekas)"This reverts commita0cdcb0, reversingchanges made to9c8a3e9.
nicolas-grekas added a commit that referenced this pull requestJul 17, 2016
* 2.7:  [VarDumper] Fix dumping jsons casted as arrays  PassConfig::getMergePass is not an array  Revert "bug#19114 [HttpKernel] Dont close the reponse stream in debug (nicolas-grekas)"  Fix the retrieval of the last username when using forwarding  [Yaml] Fix PHPDoc of the Yaml class  [HttpFoundation] Add OPTIONS and TRACE to the list of safe methods  Update getAbsoluteUri() for query string uris
nicolas-grekas added a commit that referenced this pull requestJul 17, 2016
* 2.8:  [VarDumper] Fix dumping jsons casted as arrays  PassConfig::getMergePass is not an array  Revert "bug#19114 [HttpKernel] Dont close the reponse stream in debug (nicolas-grekas)"  Fix the retrieval of the last username when using forwarding  [Yaml] Fix PHPDoc of the Yaml class  [HttpFoundation] Add OPTIONS and TRACE to the list of safe methods  Update getAbsoluteUri() for query string uris
nicolas-grekas added a commit that referenced this pull requestJul 17, 2016
* 3.0:  [VarDumper] Fix dumping jsons casted as arrays  PassConfig::getMergePass is not an array  Revert "bug#19114 [HttpKernel] Dont close the reponse stream in debug (nicolas-grekas)"  Fix the retrieval of the last username when using forwarding  [Yaml] Fix PHPDoc of the Yaml class  [HttpFoundation] Add OPTIONS and TRACE to the list of safe methods  Update getAbsoluteUri() for query string urisConflicts:src/Symfony/Component/Yaml/Yaml.php
nicolas-grekas added a commit that referenced this pull requestJul 17, 2016
* 3.1:  [VarDumper] Fix dumping jsons casted as arrays  PassConfig::getMergePass is not an array  Revert "bug#19114 [HttpKernel] Dont close the reponse stream in debug (nicolas-grekas)"  [Serializer] Include the format in the cache key  Fix the retrieval of the last username when using forwarding  [Yaml] Fix PHPDoc of the Yaml class  [HttpFoundation] Add OPTIONS and TRACE to the list of safe methods  Update getAbsoluteUri() for query string urisConflicts:src/Symfony/Component/DependencyInjection/Compiler/PassConfig.phpsrc/Symfony/Component/HttpFoundation/Tests/RequestTest.php
@lecajer
Copy link

lecajer commentedJul 19, 2016
edited
Loading

Thanks for reverting. In what versions of symfony/http-foundation and symfony/http-kernel is this fix available ?

@stof
Copy link
Member

@jeremlicious the revert is currently only available in dev versions. It will be available in the next patch releases (i.e. 3.1.3, 3.0.9, 2.8.9 and 2.7.18)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

9 participants

@nicolas-grekas@xabbuh@fabpot@pyrech@stof@jakzal@JEDIBC@lecajer@javiereguiluz

[8]ページ先頭

©2009-2025 Movatter.jp