此篇文章介绍怎么样设置Http Connection 的timeout方法
Last Updated: 9 September 2009
|
Article Number: DB-00526
|
|
Summary
This article applies to the following:
|
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问题解决办法的相关资料,需要的朋友可以参考下
本书名为《Syngress - How to Cheat at Securing Windows 2000 Server TCP-IP Connections.pdf》,主要围绕如何有效地保障Windows 2000服务器TCP-IP连接的安全性,提供了一系列的技巧和方法。以下是本书中包含的知识...
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 ...
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....
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 ...
- 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. - ...
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...
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...
- 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 ...
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 ...
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 ...
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 ...
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_" 指示了这是一个关于在LabVIEW中实现TCP多连接客户端的项目。LabVIEW是美国国家仪器(NI)开发的一种图形化编程环境,常用于数据采集、测试测量和控制系统...
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 ...
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
--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 ...
o Added command-line options to control the settings under the Options and View menus: /MarkPorts, /DisplayUdpPorts, /DisplayTcpPorts, /DisplayClosedPorts, and more... * Version 1.83: o Added '...