jetty socket maxIdleTime
来源:互联网 发布:上海锐战网络 编辑:程序博客网 时间:2024/06/05 03:56
/* ------------------------------------------------------------ */
/**
* Set the maximum Idle time for a connection, which roughly translates to the {@link Socket#setSoTimeout(int)} call, although with NIO implementations
* other mechanisms may be used to implement the timeout. The max idle time is applied:
* <ul>
* <li>When waiting for a new request to be received on a connection</li>
* <li>When reading the headers and content of a request</li>
* <li>When writing the headers and content of a response</li>
* </ul>
* Jetty interprets this value as the maximum time between some progress being made on the connection. So if a single byte is read or written, then the
* timeout (if implemented by jetty) is reset. However, in many instances, the reading/writing is delegated to the JVM, and the semantic is more strictly
* enforced as the maximum time a single read/write operation can take. Note, that as Jetty supports writes of memory mapped file buffers, then a write may
* take many 10s of seconds for large content written to a slow device.
* <p>
* Previously, Jetty supported separate idle timeouts and IO operation timeouts, however the expense of changing the value of soTimeout was significant, so
* these timeouts were merged. With the advent of NIO, it may be possible to again differentiate these values (if there is demand).
*
* @param maxIdleTime
* The maxIdleTime to set.
/**
* Set the maximum Idle time for a connection, which roughly translates to the {@link Socket#setSoTimeout(int)} call, although with NIO implementations
* other mechanisms may be used to implement the timeout. The max idle time is applied:
* <ul>
* <li>When waiting for a new request to be received on a connection</li>
* <li>When reading the headers and content of a request</li>
* <li>When writing the headers and content of a response</li>
* </ul>
* Jetty interprets this value as the maximum time between some progress being made on the connection. So if a single byte is read or written, then the
* timeout (if implemented by jetty) is reset. However, in many instances, the reading/writing is delegated to the JVM, and the semantic is more strictly
* enforced as the maximum time a single read/write operation can take. Note, that as Jetty supports writes of memory mapped file buffers, then a write may
* take many 10s of seconds for large content written to a slow device.
* <p>
* Previously, Jetty supported separate idle timeouts and IO operation timeouts, however the expense of changing the value of soTimeout was significant, so
* these timeouts were merged. With the advent of NIO, it may be possible to again differentiate these values (if there is demand).
*
* @param maxIdleTime
* The maxIdleTime to set.
0 0
- jetty socket maxIdleTime
- maxIdleTime jetty
- Jetty
- jetty
- Jetty
- Jetty
- Jetty
- Jetty
- Jetty
- Jetty
- jetty
- Jetty
- JETTY
- jetty
- Jetty
- jetty
- Jetty
- Jetty
- 时间序列数据挖掘
- OpenCV中矩阵类详解之三:CvMat,Mat和IplImage之间的转化和拷贝
- TAILQ_INIT
- 项目四计算正差值
- ASCII与Unicode编码消息写文件浅析
- jetty socket maxIdleTime
- editplus替换开头的数字
- JS资源
- Cocoa 框架 For iOS(二)对象的分配初始化、内省、单例
- fdgdfgdfg
- BZOJ 3037 创世纪 树形DP
- 检测多个Jar包冲突的class
- TextView
- MTK6515 android打版软件配置