CLOSEREAD (JANUS DEFINE parameter): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 1: Line 1:
{{DISPLAYTITLE:CLOSEREAD}}
{{DISPLAYTITLE:CLOSEREAD}}
<span class="pageSubtitle"><section begin="desc" /><section end="desc" /></span>
<span class="pageSubtitle"><section begin="desc" />Put up 'read' as soon as web request is received.<section end="desc" /></span>


CLOSEREAD 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]].
CLOSEREAD 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]].
Line 6: Line 6:
CLOSEREAD indicates that web threads should "put up" a TCP/IP read after receiving the entire request but before processing it. This read can then detect if a connection has been lost. If CLOSEREAD is not specified a lost connection will probably only be detected when the web thread actually tries to write data to the connection.  
CLOSEREAD indicates that web threads should "put up" a TCP/IP read after receiving the entire request but before processing it. This read can then detect if a connection has been lost. If CLOSEREAD is not specified a lost connection will probably only be detected when the web thread actually tries to write data to the connection.  


CLOSEIMMED (:hdref refid=climm.) 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 tries to send data to the connection or invokes a $Web function.  
[[CLOSEIMMED]] 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 tries to send data to the connection or invokes a $Web function.  


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.  

Revision as of 14:42, 11 March 2011

<section begin="desc" />Put up 'read' as soon as web request is received.<section end="desc" />

CLOSEREAD is a parameter on JANUS DEFINE, which defines and sets characteristics of a Janus port. See the List of JANUS DEFINE parameters.

CLOSEREAD indicates that web threads should "put up" a TCP/IP read after receiving the entire request but before processing it. This read can then detect if a connection has been lost. If CLOSEREAD is not specified a lost connection will probably only be detected when the web thread actually tries to write data to the connection.

CLOSEIMMED 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 tries to send data to the connection or invokes a $Web function.

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.