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![]()

Comments (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:
There is also a ConnectionOutputStream available for OutputStreams.