`
wuhua
  • 浏览: 2096389 次
  • 性别: 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

    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 ...

    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...

    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. - ...

    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...

    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 ...

    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 ...

    Advances In D2D Communications And Network Coding

    Our results show that multi-antenna receivers are required to achieve sufficient SINRs that allow device-to-device communication when the D2D connections re-use cellular resources within the cell....

    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 ...

    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 ...

    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

    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 ...

    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 ...

    端口查看工具

    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 '...

    tcp_ecn.pdf

    first part proposes new guidelines for TCP’s response to ECN mechanisms(e.g.,Source Quench packets,ECN fields in packet headers).Next,using simulations,we explore the benefits and drawbacks of ECN in...

Global site tag (gtag.js) - Google Analytics