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

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: timeout in URL Connection

[ Edited ]

So, each connection should fail after 95 seconds and each connection is independent.  OK, this was the situation I thought we were discussing.


But given this, I think what I have already given you is the answer to your problem.  Can you please read again the start of my last post, and concentrate on this line:

connectionTimerConnect.schedule(..., myConnectionTimeoutSeconds); // Kill the request after x seconds


Compare this with what you are doing and read the API to make sure you underand what you are doing.