0

I have created socket program in Blackberry. and also set socket to keep alive using the following

socket = (SocketConnection) Connector.open(URL);
socket.setSocketOption(socket.KEEPALIVE, 2);

But my socket connection gets terminated after 2-3 minute. Means if I keep Ideal for 2-3 minute for 2-3 minute then my socket connection gets lost.

So how to make my socket connection to be alive forever although I may be ideal for 1 hour or more than that.

Lucifer
  • 29,392
  • 25
  • 90
  • 143
Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243
  • Im facing exactly the same problem...any solution? – iOSDev Sep 23 '09 at 10:07
  • 1
    You've asked 13 questions and haven't accepted any answers yet. Surely some of the were helpful. The one below from coldice for example is definitive. Perhaps time to repay those who have helped you most. – Richard Oct 02 '09 at 13:07

1 Answers1

3

How To - Control the connection timeout for TCP connections through the BlackBerry MDS Connection Service

Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114