B4J Question [IGNORE!] SslConfiguration

Jmu5667

Well-Known Member
Licensed User
Longtime User
EDIT: coding error !

Hello

We have quite a few B4J socket servers that we have developed. We have a range of B4A apps that connect to the appropriate server so data can be exchanged between them. On the B4A apps we may have an always on connection to the server and we send our own 'ping' packet to keep the connection open. Recently we have been monitoring the data usage on the B4A side on a new app we are launching very soon, and noticed a lot a data being used when the app is sitting idle.

We loaded wire shark to monitor this. Our observations are as follows:

On on B4J server it would appear to be sending 147 byte every 15 seconds and received a response of 60 bytes from the app. Our company have recently secured a deal with major mobile operator where by we can sell data only sim cards and our apps to our expanding customer base. As the data amount is limited we need to make sure that our app are and services are streamlined to be 'Data Friendly'.

My assumption is that the data we are seeing are AutoPings on the SSL layer.

Screen shot from wire shark:




My questions are:

1. Can we disable auto pinging, is so is it done on the server or the client (https://javadoc.io/static/io.crossb...ebSocketOptions.html#setAutoPingInterval-int-)

2. If we cannot disable this, how can we change the interval.

Regards

John.
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…