• 水费欠账竟“穿越”16年?用户质疑:为何没见催缴过? 2019-09-11
  • 青海学习十九大精神嵌套页面--青海频道--人民网 2019-09-11
  • 图片报道:江西省峡江县举行公共租赁住房钥匙发放仪式 2019-09-09
  • 机器人正在敲响未来生活的“大门” 2019-09-09
  • 香蕉-热门标签-华商生活 2019-08-20
  • 更聪明、更可靠、更低价 广汽传祺全新GS4上市 2019-07-30
  • 社会主要矛盾的转化规律及其政策取向 2019-07-30
  • 为太原人才新政点赞! 2019-07-27
  • 坚定不移全面深化改革 2019-07-19
  • 全运有约:李冰洁谈个人参赛感受和训练生活 2019-07-19
  • 魏晨:与女友感情稳定 有结婚计划会第一时间公开 2019-07-17
  • 绍兴印染布质量比对成果发布 部分指标国际领先 2019-07-11
  • 陕西守艺人丨一场大火后,她带领600羌州绣娘从头开始 2019-07-11
  • 今日武汉中考考生可看考点考场 进行英语听力试听 2019-07-08
  • 中方坚决捍卫国家利益和人民利益 2019-07-08
  • 
      The Apache Tomcat Servlet/JSP Container

    十三水 下载:Apache Tomcat 7

    Version 7.0.68, Feb 8 2016
    Apache Logo

    qq游戏里有十三水这个游戏吗 www.tdgb.net Links

    User Guide

    Reference

    Apache Tomcat Development

    WebSocket How-To

    Table of Contents
    Overview

    Tomcat provides support for WebSocket as defined by RFC 6455.

    Application development

    Tomcat implements the Java WebSocket 1.1 API defined by JSR-356.

    There are several example applications that demonstrate how the WebSocket API can be used. You will need to look at both the client side HTML and the server side code.

    Production usage

    Although the WebSocket implementation does work with any of the HTTP connectors, it is not recommended to the WebSocket with the BIO HTTP connector as the typical uses of WebSocket (large numbers of mostly idle connections) is not a good fit for the HTTP BIO connector which requires that one thread is allocated per connection regardless of whether or not the connection is idle.

    It has been reported (56304) that Linux can take large numbers of minutes to report dropped connections. When using WebSocket with the BIO HTTP connector this can result in threads blocking on writes for this period. This is likely to be undesirable. The time taken for the connection to be reported as dropped can be reduced by using the kernel network parameter /proc/sys/net/ipv4/tcp_retries2. Alternatively, one of the other HTTP connectors may be used as they utilise non-blocking IO enabling Tomcat to implement its own timeout mechanism to handle these cases.

    Tomcat WebSocket specific configuration

    The JSR-356 Java WebSocket 1.1 implementation is only available when Tomcat is running on Java 7 or later.

    Tomcat provides a number of Tomcat specific configuration options for WebSocket. It is anticipated that these will be absorbed into the WebSocket specification over time.

    The write timeout used when sending WebSocket messages in blocking mode defaults to 20000 milliseconds (20 seconds). This may be changed by setting the property org.apache.tomcat.websocket.BLOCKING_SEND_TIMEOUT in the user properties collection attached to the WebSocket session. The value assigned to this property should be a Long and represents the timeout to use in milliseconds. For an infinite timeout, use -1.

    If the application does not define a MessageHandler.Partial for incoming binary messages, any incoming binary messages must be buffered so the entire message can be delivered in a single call to the registered MessageHandler.Whole for binary messages. The default buffer size for binary messages is 8192 bytes. This may be changed for a web application by setting the servlet context initialization parameter org.apache.tomcat.websocket.binaryBufferSize to the desired value in bytes.

    If the application does not define a MessageHandler.Partial for incoming text messages, any incoming text messages must be buffered so the entire message can be delivered in a single call to the registered MessageHandler.Whole for text messages. The default buffer size for text messages is 8192 bytes. This may be changed for a web application by setting the servlet context initialization parameter org.apache.tomcat.websocket.textBufferSize to the desired value in bytes.

    The Java WebSocket specification 1.0 does not permit programmatic deployment after the first endpoint has started a WebSocket handshake. By default, Tomcat continues to permit additional programmatic deployment. This behavior is controlled by the org.apache.tomcat.websocket.noAddAfterHandshake servlet context initialization parameter. The default may be changed by setting the org.apache.tomcat.websocket.STRICT_SPEC_COMPLIANCE system property to true but any explicit setting on the servlet context will always take priority.

    The Java WebSocket 1.0 specification requires that callbacks for asynchronous writes are performed on a different thread to the thread that initiated the write. Since the container thread pool is not exposed via the Servlet API, the WebSocket implementation has to provide its own thread pool. This thread pool is controlled by the following servlet context initialization parameters:

    • org.apache.tomcat.websocket.executorCoreSize: The core size of the executor thread pool. If not set, the default of 0 (zero) is used. Note that the maximum permitted size of the executor thread pool is hard coded to Integer.MAX_VALUE which effectively means it is unlimited.
    • org.apache.tomcat.websocket.executorKeepAliveTimeSeconds: The maximum time an idle thread will remain in the executor thread pool until it is terminated. If not specified, the default of 60 seconds is used.

    When using the WebSocket client to connect to server endpoints, the timeout for IO operations while establishing the connection is controlled by the userProperties of the provided javax.websocket.ClientEndpointConfig. The property is org.apache.tomcat.websocket.IO_TIMEOUT_MS and is the timeout as a String in milliseconds. The default is 5000 (5 seconds).

    When using the WebSocket client to connect to secure server endpoints, the client SSL configuration is controlled by the userProperties of the provided javax.websocket.ClientEndpointConfig. The following user properties are supported:

    • org.apache.tomcat.websocket.SSL_CONTEXT
    • org.apache.tomcat.websocket.SSL_PROTOCOLS
    • org.apache.tomcat.websocket.SSL_TRUSTSTORE
    • org.apache.tomcat.websocket.SSL_TRUSTSTORE_PWD

    The default truststore password is changeit.

    If the org.apache.tomcat.websocket.SSL_CONTEXT property is set then the org.apache.tomcat.websocket.SSL_TRUSTSTORE and org.apache.tomcat.websocket.SSL_TRUSTSTORE_PWD properties will be ignored.

    Deprecated proprietary API

    Prior to the development of JRS-356, Tomcat provided a proprietary WebSocket API. This API has been deprecated in Tomcat 7 and will be removed in Tomcat 8. There is unlikely to be any further development of this proprietary API apart from bug fixes.

    For information on this API, please see the Javadoc for the org.apache.catalina.websocket package. The Javadoc pages are not included with Tomcat binary distributions. To view them locally you would have to download and install "Full documentation" distribution, or build it from sources. You can also read this on the Apache Tomcat web site. Start with the WebSocketServlet class.

    There are also several example applications that demonstrate how the WebSocket API can be used. You'll need to look at both the client side HTML and the server side code.

    Comments

    Notice: This comments section collects your suggestions on improving documentation for Apache Tomcat.

    If you have trouble and need help, read Find Help page and ask your question on the tomcat-users qq游戏里有十三水这个游戏吗. Do not ask such questions here. This is not a Q&A section.

    The Apache Comments System is explained here. Comments may be removed by our moderators if they are either implemented or considered invalid/off-topic.


    Copyright © 1999-2016, Apache Software Foundation
  • 水费欠账竟“穿越”16年?用户质疑:为何没见催缴过? 2019-09-11
  • 青海学习十九大精神嵌套页面--青海频道--人民网 2019-09-11
  • 图片报道:江西省峡江县举行公共租赁住房钥匙发放仪式 2019-09-09
  • 机器人正在敲响未来生活的“大门” 2019-09-09
  • 香蕉-热门标签-华商生活 2019-08-20
  • 更聪明、更可靠、更低价 广汽传祺全新GS4上市 2019-07-30
  • 社会主要矛盾的转化规律及其政策取向 2019-07-30
  • 为太原人才新政点赞! 2019-07-27
  • 坚定不移全面深化改革 2019-07-19
  • 全运有约:李冰洁谈个人参赛感受和训练生活 2019-07-19
  • 魏晨:与女友感情稳定 有结婚计划会第一时间公开 2019-07-17
  • 绍兴印染布质量比对成果发布 部分指标国际领先 2019-07-11
  • 陕西守艺人丨一场大火后,她带领600羌州绣娘从头开始 2019-07-11
  • 今日武汉中考考生可看考点考场 进行英语听力试听 2019-07-08
  • 中方坚决捍卫国家利益和人民利益 2019-07-08
  • 2019彩票大奖有几个 好运快3开奖平台 广东南粤風彩36选7开奖 海南体彩官方下载ios 彩票中奖去哪领奖 北京快乐8开奖走势图360 欢乐升级不能全屏 天线宝宝心水论坛首页 今天nba比分是多少 pk10打负盈利方法 德州扑克高级现金桌 曾道免费资料大全2017年 36选7复式价格投注表 体彩大乐透 极速赛车有假吗