CLOSEIMMED (JANUS DEFINE parameter): Difference between revisions
m (1 revision) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:CLOSEIMMED}} | {{DISPLAYTITLE:CLOSEIMMED}} | ||
<span class="pageSubtitle"><section begin="desc" /><section end="desc" /></span> | <span class="pageSubtitle"><section begin="desc" />Bump lost web threads immediately.<section end="desc" /></span> | ||
CLOSEIMMED is a parameter on [[JANUS DEFINE]], which defines and sets characteristics of a Janus port. See the [[JANUS DEFINE#parmlist|List of JANUS DEFINE parameters]]. | CLOSEIMMED is a parameter on [[JANUS DEFINE]], which defines and sets characteristics of a Janus port. See the [[JANUS DEFINE#parmlist|List of JANUS DEFINE parameters]]. | ||
This parameter indicates that if a lost connection is noticed by the Janus PST, the PST should BUMP the ''Model 204'' thread associated with the connection immediately. If CLOSEIMMED is not specified a lost connection will only cause request termination when the web thread invokes a $Web function. Typically, the Janus PST will not notice that a connection has been lost until the user issues a [[$Web_Done]] because until then there will be no TCP/IP calls that can discover that the connection has been lost. Without the CLOSEREAD parameter (:hdref refid=clread.) the CLOSEIMMED parameter will probably have no effect. | |||
[[CLOSEREAD]] and CLOSEIMMED are useful for ensuring that CPU and I/O intensive web requests will be terminated immediately should the user become impatient and cancel the request. | |||
CLOSEREAD and CLOSEIMMED are useful for ensuring that CPU and I/O intensive web requests will be terminated immediately should the user become impatient and cancel the request. | |||
Valid only for WEBSERV ports. | Valid only for WEBSERV ports. |
Revision as of 14:39, 11 March 2011
<section begin="desc" />Bump lost web threads immediately.<section end="desc" />
CLOSEIMMED is a parameter on JANUS DEFINE, which defines and sets characteristics of a Janus port. See the List of JANUS DEFINE parameters.
This parameter indicates that if a lost connection is noticed by the Janus PST, the PST should BUMP the Model 204 thread associated with the connection immediately. If CLOSEIMMED is not specified a lost connection will only cause request termination when the web thread invokes a $Web function. Typically, the Janus PST will not notice that a connection has been lost until the user issues a $Web_Done because until then there will be no TCP/IP calls that can discover that the connection has been lost. Without the CLOSEREAD parameter (:hdref refid=clread.) the CLOSEIMMED parameter will probably have no effect.
CLOSEREAD and CLOSEIMMED are useful for ensuring that CPU and I/O intensive web requests will be terminated immediately should the user become impatient and cancel the request.
Valid only for WEBSERV ports.
References
See: List of Janus commands | List of JANUS DEFINE parameters.