08-17-2012 05:15 AM - edited 08-17-2012 05:23 AM
I am working on an application that uses SSL to communicate with a server. For every request I make, I open the connection, make the request and then close the connection.
I was thinking about keeping the connection "alive", so I just open a connection and I make as many requests as I want before I close it.
My question is: Is this possible in Blackberry? Has anyone implemented it successfully in their application?
Thank you very much in advance
Solved! Go to Solution.
08-17-2012 05:24 AM
08-17-2012 05:38 AM
Thanks for your quick reply Simon,
You said: "as the framework kills them after some time" --> What is the timeout for this?
Could I recreate the connection after it gets killed by the framework? At least this way the performance would be better than in my current situation.
Thank you very much indeed
08-20-2012 04:58 AM
I'm using http level connection. That's why I'm asking. I know it's possible for socket level connection using "keepalive". But my question is: is it possible using http/https connections?
Thanks so much
08-20-2012 08:29 AM
To answer questions from previously:
"What is the timeout for this?"
"Could I recreate the connection after it gets killed by the framework?"
I am not aware of a way.
Because http is effectively a connect, send, response, close connection protocol, I don't believe there is anything that you do about this process - perhaps try to do more on each http request?
But this is not an area of great expertise, so I would wait for other input.