Read the current requesttimeout with cfml

Am I right that there is no way to read the current value of in CFML?

I guess I could wrap all my calls in a custom function to do
this.

It would be nice to have a way to read this setting back out of CFML.

For example, I might make a function that may need to extend the length of
the timeout value, but not make it any smaller then the existing number.

Hi Bruce,

getPageContext().getRequestTimeout();

should get you the timeout in ms.

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.orgOn 9 June 2016 at 15:19, Bruce Kirkpatrick <@Bruce_Kirkpatrick> wrote:

Am I right that there is no way to read the current value of in CFML?

I guess I could wrap all my calls in a custom function to do
this.

It would be nice to have a way to read this setting back out of CFML.

For example, I might make a function that may need to extend the length of
the timeout value, but not make it any smaller then the existing number.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/91d7562d-8dad-45d0-bc40-e29e9579a171%40googlegroups.com
https://groups.google.com/d/msgid/lucee/91d7562d-8dad-45d0-bc40-e29e9579a171%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Andrew,

It does, but the return value of getPageContext is a Java object. With
java disabled in the access/sandbox, there is no pure CFML way to do this.On Thursday, June 9, 2016 at 12:17:19 PM UTC-4, Andrew Dixon wrote:

Hi Bruce,

getPageContext().getRequestTimeout();

should get you the timeout in ms.

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.org

On 9 June 2016 at 15:19, Bruce Kirkpatrick <br...@farbeyondcode.com <javascript:>> wrote:

Am I right that there is no way to read the current value of in CFML?

I guess I could wrap all my calls in a custom function to do
this.

It would be nice to have a way to read this setting back out of CFML.

For example, I might make a function that may need to extend the length
of the timeout value, but not make it any smaller then the existing number.


Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/91d7562d-8dad-45d0-bc40-e29e9579a171%40googlegroups.com
https://groups.google.com/d/msgid/lucee/91d7562d-8dad-45d0-bc40-e29e9579a171%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.