-
-
Notifications
You must be signed in to change notification settings - Fork 197
Added server time in 5.3 latest #468
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
Conversation
| variables.serverTimingHeaders = []; | ||
|
|
||
| function addServerTimingHeader(metric, name, timeMs){ | ||
| arrayAppend(variables.serverTimingHeaders, '"#arguments.name#" - #arguments.metric#=#arguments.timeMs#'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you tried this out in chrome to see if it works?
the format for the server timing headers has changed since my original commit
https://github.com/zspitzer/lucee-loganalyzer/blob/refactoring/source/cfml/plugins/renderUtils.cfc#L54
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can see these in the timing panel when you open a request under network in chrome dev tools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zspitzer, I'll check it & Let You Know
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cfmitrah is that still ready to go for 5.3? if so can you please redirect it to 6.0. i do not wanna make that kind of change to 5.3
|
@zspitzer now I saw server timings in chrome dev tool |
|
There is one problem with this code that need to be addressed and one concern (see tickets for detail). The solution is not to test and simply catch the exception if they occur OR add a function to lucee (isFlushed) that gives this info. |
|
IsFlushed would be useful, it should be available.
Is there something like the old asp isConnected() available?
…On Mon., 7 May 2018, 19:00 Michael Offner, ***@***.***> wrote:
There is one problem with this code that need to be addressed and one
concern (see tickets for detail).
you cannot do this code in CFML
"getPageContext().getHttpServletResponse().isCommitted()", if "direct java
access" is disabled in the Security/access Page in the server admin, you
will get an exception with that code.
This template should not be affected by different admin settings.
The solution is not to test and simply catch the exception if they occur
OR add a function to lucee (isFlushed) that gives this info.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#468 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAaBpD26B7spvYoMzOvyoizgKqHQERttks5twA1FgaJpZM4Tf56a>
.
|
|
@zspitzer no there is no isConnected, but i like the idea, i will add both if possible, i'm not sure if the servlet engine is providing that kind of info. |
|
every function we add brings the risk to break code in case user have the same function already in use. So instead of having 2 functions i prefer to have only one |
|
added getContextInfo https://luceeserver.atlassian.net/browse/LDEV-1866 (ATM only provide flushed, more to come), can you adapt this function? |
|
I've been following the Firefox implementation of this, they mentioned Trailer headers https://bugzilla.mozilla.org/show_bug.cgi?id=1403051 |
|
@zspitzer what is the status on this? |
No description provided.