Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
omgimanoob
Posts: 26
Registered: ‎06-10-2011
My Device: Blackberry 9800 Simulator
My Carrier: Fledge Simulated Network
Accepted Solution

Number of current alive http connections.

Dear developers,

 

I understand that when maximum number of direct TCP connections are open and an application attempts to make another, the java.io.IOException: Max connections opened exception is thrown.

 

Is there any way to detect and display the current active / alive http connections?

Please use plain text.
Contributor
omgimanoob
Posts: 26
Registered: ‎06-10-2011
My Device: Blackberry 9800 Simulator
My Carrier: Fledge Simulated Network

Re: Number of current alive http connections.

Bump

Please use plain text.
Contributor
omgimanoob
Posts: 26
Registered: ‎06-10-2011
My Device: Blackberry 9800 Simulator
My Carrier: Fledge Simulated Network

Re: Number of current alive http connections.

Bump

Please use plain text.
Developer
simon_hain
Posts: 15,805
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Number of current alive http connections.

the connections are handled by the OS framework. unless you control them yourself there is no way to get information about them.

we use a queue system to avoid too many open connections at the same time.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
maadani
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Number of current alive http connections.

You can also try and override the 'ConnectionFactory' class.

 

You can easily add a counter and limit open connections.

 

E.

Please use plain text.