8000 [Components][HttpKernel] outline implications of the kernel.terminate event by xabbuh · Pull Request #4224 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Components][HttpKernel] outline implications of the kernel.terminate event #4224

8000
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

Merged
merged 1 commit into from
Oct 19, 2014

Conversation

xabbuh
Copy link
Member
@xabbuh xabbuh commented Sep 13, 2014
Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets #4198

@@ -472,6 +472,14 @@ you will trigger the ``kernel.terminate`` event where you can perform certain
actions that you may have delayed in order to return the response as quickly
as possible to the client (e.g. sending emails).

.. caution::

You should use the ``kernel.terminate`` event with `PHP FPM`_ only. It
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should do more of a "Understand that if you ... then .... the event benefit is lost because it will be blocking... but it will still work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree with @cordoval - I think all we need to say is that you won't get the nice benefits unless you use PHP FPM. We might as well also mention that this is because the fastcgi_finish_request() PHP function is used, and only PHP FPM supports this.

@xabbuh
Copy link
Member Author
xabbuh commented Oct 19, 2014

@cordoval @weaverryan Sorry for the long delay. I updated the wording and added some more information. What do you think of it now?

.. caution::

Internally, the HttpKernel makes use of the :phpfunction:`fastcgi_finish_request`
PHP function. This means that at the moment only the `PHP FPM`_ server
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... at the moment, only the...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added commas before and after "at the moment". Is that correct?

8000

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is needed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wouterj Both? Or do you mean the first?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the first

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed it again. Though I feel that the sentence looks a bit weird now.

@weaverryan
Copy link
Member

It looks great now! Honestly, the sentence was pretty ok with no commas, with 2 commas and how it reads now. All very minor (and subjective to me) differences. But fun to discuss ;). Thanks guys!

@weaverryan weaverryan merged commit c4f4588 into symfony:2.3 Oct 19, 2014
weaverryan added a commit that referenced this pull request Oct 19, 2014
…rnel.terminate event (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Components][HttpKernel] outline implications of the kernel.terminate event

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #4198

Commits
-------

c4f4588 outline implications of the kernel.terminate event
@xabbuh xabbuh deleted the issue-4198 branch October 19, 2014 18:09
@xabbuh
Copy link
Member Author
xabbuh commented Oct 19, 2014

@weaverryan As long as you as a native speaker think that it is correct. :)

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

Successfully merging this pull request may close these issues.

4 participants
0