Connection Limits

Summary

A BlackBerry device can only have a certain number of file connections open at one time (either 8 or 16, depending on the operating system).

Other types of connections also have limits; refer to this Knowledge Base Article: Maximum Number of Simultaneous Connections

Related Information

How to Close a Connection

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Sep 21, 2010

    Martin Reed says:

    Note that closing an InputStream that was generated from an HttpConnection does ...

    Note that closing an InputStream that was generated from an HttpConnection does not guarantee that the HttpConnection will be closed as well. For extra insurance if you are not in control of where the InptStream gets closed, you can wrap your InputStream in a ConnectionInputStream instance (extends DataInputStream). Using this class guarantees that when close() is called on the InputStream, close() will be called on the supplied connection as well. The constructor methods are:

    • ConnectionInputStream(InputConnection connection) throws IOException
    • ConnectionInputStream(InputConnection connection, InputStream inputStream)

    There is also a ConnectionOutputStream available for OutputStreams.

© 2011 Metova, Inc.