BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   timeout (http://www.blackberryforums.com/developer-forum/180197-timeout.html)

misty83 03-09-2009 06:27 AM

timeout
 
is there any possibility, to set a timeout for SecureConnection??

PHP Code:

SecureConnection _sc = (SecureConnection)
                
Connector.open("ssl://address:port;deviceside=true;"); 

i need to set timeout for 20 seconds, i'm looking for a solution but i did not find any..

hrbuckley 03-09-2009 08:43 PM

Have a look at this knowledge base article.

misty83 03-10-2009 02:01 AM

but this works only for http. not for SecureConnection. i saw this link before

hrbuckley 03-10-2009 08:00 AM

It works for all TCP connections sent via the MDS server, so connections via BES and Unite, or through those ports supported by BIS.

If you are using direct TCP through the carrier APN then it is not supported, even for HTTP. I also suspect that reliability would suffer with a timeout at 20 seconds for direct TCP connection, as latency can get quite high in some circumstances.

misty83 03-11-2009 02:43 AM

ok, thx for the reply, now i understand

kind regards


All times are GMT -5. The time now is 05:25 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.