`
wuhua
  • 浏览: 2114182 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

How To - Control the connection timeout for TCP connections through the BlackBer

阅读更多

此篇文章介绍怎么样设置Http Connection 的timeout方法

Last Updated: 9 September 2009
Article Number: DB-00526

Summary

This article applies to the following:

  • BlackBerry® smartphones based on Java® technology

Procedure

When making a Transmission Control Protocol (TCP) connection from a BlackBerry smartphone, the default connection timeout is 2 minutes. This value takes into consideration the possible time it can take a BlackBerry smartphone to be granted access to send data on the wireless network, and for the connection to travel over the wireless network over the Internet to the destination server and back again. In some circumstances, this value is too long. When making a socket or Hypertext Transfer Protocol (HTTP) connection through the BlackBerry® Mobile Data System (BlackBerry MDS) Connection Service, it is possible to set the timeout value to a lower value than the value that is configured in the BlackBerry MDS Connection Service. By default, the value is 2 minutes. It is not possible to extend beyond the limit configured on the server. Use the ConnectionTimeout parameter to specify the timeout value. This parameter accepts a numerical value in milliseconds. The following is an example of an HTTP connection with a timeout value of 1 minute:

StreamConnection s = (StreamConnection)Connector.open("http://myserver.com/mypage.html;ConnectionTimeout=60000;deviceside=false");
HttpConnection httpConn = (HttpConnection)s;

Note: The ConnectionTimeout parameter is not supported by direct TCP connections or connections through a Wireless Application Protocol (WAP) gateway. Only TCP connections, made through the BlackBerry MDS Connection Service, support this parameter.

 

Keywords

http, socket, time out, ConnectionTimeout, wait, timeout, two minutes, 2 minutes

分享到:
评论

相关推荐

    linux上TCP connection timeout问题解决办法

    主要介绍了 linux上TCP connection timeout问题解决办法的相关资料,需要的朋友可以参考下

    Syngress - How to Cheat at Securing Windows 2000 Server TCP-IP Connections.pdf

    本书名为《Syngress - How to Cheat at Securing Windows 2000 Server TCP-IP Connections.pdf》,主要围绕如何有效地保障Windows 2000服务器TCP-IP连接的安全性,提供了一系列的技巧和方法。以下是本书中包含的知识...

    ramin 2.2 for xp

    Radmin server supports simultaneous multiple connections to the same remote screen. Full-Screen, Scaled and Windowed View Modes Full-screen mode shows the remote screen full-size on your own monitor...

    计算机网络第六版答案

    Hence, it becomes possible for the attacker to issue a command to all the nodes, that target a single node (for example, all nodes in the botnet might be commanded by the attacker to send a TCP SYN ...

    pyloris-3.2-win32

    Invoking HTTPLoris by using the commands above start a limited to 500 connections across 50 threads, each sending at 1 byte/second and waiting until the connection is forced shut by the server....

    How-to-configure-SQL-Server-2005-to-allow-remote-_surface

    To enable remote connections on the instance of SQL Server 2005 and to turn on the SQL Server Browser service, use the SQL Server 2005 Surface Area Configuration tool. The Surface Area Configuration ...

    mysql.data.dll

    - Command timeout has been refactored to use network and stream timeouts instead of a timer. The result of this is that fewer system resources are used and the system should be more reliable. - ...

    How to Cheat at Securing a Wireless Network

    With the increased demand for mobile connectivity and the decrease in cost and in the time required for installation, wireless network connections will make up 20% of all corporate network connections...

    An End-to-End Network for Generating Social Relationship Graphs.pdf

    The neural network exploits the recurrent connections among the GRUs to implement message passing between nodes and edges in the graph, and results in significant improvement over previous methods for...

    bVNC-Pro-Secure-VNC-Viewer_v4.1.0.apk

    - On-device help on creating a new connection in the Menu when setting up connections - On-device help on available input modes in the Menu when connected - Recommended with Hackers keyboard from ...

    mysql安装失败

    If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for connections. Otherwise no client application can connect to the server. After you have opened ...

    计算机网络英文课件:Chapter6 The Transport Layer.ppt

    The data link layer is more involved in establishing connections within a subnet, requiring explicit addressing and more complex connection setup, and it manages in/out-buffers on a more granular ...

    elasticsearch-py-6.3.1.pdf

    if a node becomes unresponsive (throwing exceptions while connecting to it) it’s put on a timeout by the ConnectionPool class and only returned to the circulation after the timeout is over (or when ...

    springboot-keepalive设置测试

    server.tomcat.connection-timeout=30000 # 连接超时时间,单位毫秒 server.tomcat.keep-alive-timeout=60000 # keep-alive超时时间,单位毫秒 ``` 在进行keepalive测试时,我们通常会使用像Jodd库这样的HTTP客户端...

    rfc全部文档离线下载rfc1-rfc8505

    The destination is the numerical code for the HOST to which the message should be sent. The trace bit signals the IMPs to record status information about the message and send the information back ...

    TCP Multiple Connections - Client 1_labviewTCP_

    标题 "TCP Multiple Connections - Client 1_labviewTCP_" 指示了这是一个关于在LabVIEW中实现TCP多连接客户端的项目。LabVIEW是美国国家仪器(NI)开发的一种图形化编程环境,常用于数据采集、测试测量和控制系统...

    Pro ASP.NET SignalR Real-Time Communication in .NET with SignalR 2.1(pdf原版)

    Next, meet the concepts of hubs and persistent connections and how to use them to build the components of an ASP.NET SignalR application. Find out how to extend, test, debug, configure, scale, and ...

    a project model for the FreeBSD Project.7z

    I would like to thank the following people for taking the time to explain things that were unclear to me and for proofreading the document. Andrey A. Chernov Bruce A. Mah Dag-Erling Smørgrav ...

    NATBLASTER-Establishing TCP Connections Between Hosts Behind NATs.pdf

    NATBLASTER-Establishing TCP Connections Between Hosts Behind NATs.pdf

    wget-1.11.4-1

    --connect-timeout=SECS set the connect timeout to SECS. --read-timeout=SECS set the read timeout to SECS. -w, --wait=SECONDS wait SECONDS between retrievals. --waitretry=SECONDS wait 1..SECONDS ...

Global site tag (gtag.js) - Google Analytics