|
HttpTransportClient.InactivityTime Specifies how long the inactive connection is kept. Declaration
[Java ME] Description
To increase efficiency of message delivery HttpTransportClient tries to keep the established connection active for some time to avoid reconnecting when reply or next message is to be sent. If message transfer occures all the time, it makes sense to keep the connection -- each connection + disconnection require transfer of 7 TCP packets.
Use InactivityTime to specify maximum time between last activity of the inet and disconnection. The value is specified in millieconds. Use 0 to wait indefinitely. If you use long time, be sure to set AttemptsToConnect property to 3 or more so that if connection is lost for some reason, the transport has a chance to reconnect without returning the message it was delivering as failed.
|
|
