CLOSEREAD (JANUS DEFINE parameter): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
m (minor formatting)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:CLOSEREAD}}
<span class="pageSubtitle">Put up 'read' as soon as web request is received</span>
<span class="pageSubtitle"><section begin="desc" />Put up 'read' as soon as web request is received.<section end="desc" /></span>


<var>CLOSEREAD</var> 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]].
<var>CLOSEREAD</var> is a parameter on <var>[[JANUS DEFINE]]</var>, which defines and sets characteristics of a Janus port.  


<var>CLOSEREAD</var> 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 <var>CLOSEREAD</var> is not specified a lost connection will probably only be detected when the web thread actually tries to write data to the connection.  
<var>CLOSEREAD</var> 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 <var>CLOSEREAD</var> is not specified a lost connection will probably only be detected when the web thread actually tries to write data to the connection.  


<var>[[CLOSEIMMED (JANUS DEFINE parameter)|CLOSEIMMED]]</var> 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 <var>CLOSEIMMED</var> 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.  
<var>[[CLOSEIMMED (JANUS DEFINE parameter)|CLOSEIMMED]]</var> indicates that if a lost connection is noticed by the Janus PST, the PST should BUMP the <var class="product">Model&nbsp;204</var> thread associated with the connection immediately. If <var>CLOSEIMMED</var> 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.  


<var>CLOSEREAD</var> and <var>CLOSEIMMED</var> 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.  
<var>CLOSEREAD</var> and <var>CLOSEIMMED</var> 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.  
Line 12: Line 11:
Valid only for <var>[[JANUS DEFINE#type|WEBSERV]]</var> ports.
Valid only for <var>[[JANUS DEFINE#type|WEBSERV]]</var> ports.


==References==
==See also==
 
<ul>
See: [[List of Janus commands]] | [[JANUS DEFINE#parmlist|List of JANUS DEFINE parameters]].
<li>[[List of Janus commands]]
<li>[[JANUS DEFINE#parmlist|List of JANUS DEFINE parameters]]
</ul>


[[Category:JANUS DEFINE parameters|CLOSEREAD]]
[[Category:JANUS DEFINE parameters|CLOSEREAD]]

Latest revision as of 18:13, 8 June 2016

Put up 'read' as soon as web request is received

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

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.

See also