RTC Forums
May 14, 2024, 12:30:25 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Ping is always sent  (Read 4291 times)
HelgeLange
RTC Expired
*
Posts: 100


« on: February 05, 2017, 05:30:59 PM »

Hello Danijel,

I have a small question :
It looks like although I send en regular intervals data, the ping will be sent anyway, which increases communication and load unnecessarily. Since Ping should be used (in my opinion) to make sure the connections stays alive and nothing more, which it will do anyway since I send in regular intervals of 30 seconds atm. an update. The session timeout is at 120 seconds. I should not need a ping. But I am changing some code to make it more efficient for the release and want to send these updates not every 30 seconds (GPS position) but when the position changes at least 10m.
But I think the ping is sent anyway even though I just sent an update.

Could it be possible to configure the ping that way, that the ping timer resets the moment the connection as used successfully?

Greetings,
Helge
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: February 05, 2017, 06:17:30 PM »

Which component(s) are you using and how did you implement this "PING"?

Best Regards,
Danijel Tkalcec
Logged
HelgeLange
RTC Expired
*
Posts: 100


« Reply #2 on: February 05, 2017, 06:55:01 PM »

RtcClientModule.OnPing on the client side
Server side uses RtcServerModule and I use a RtcFunction there to receive the ping and send an answer.

Helge
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #3 on: February 05, 2017, 07:30:39 PM »

I've figured this might be the case and went to check how the "AutoSessionsPing" feature was implemented in the TRtcClientModule component. To make a long story short, the old implementation was skipping a "PING" call if the connection was busy when the "PING" timer fired. That's obviously not how it should be, so ... I've updated the TRtcClientModule component now to reset the "PING" timer with every remote function call prepared for the Server instead of skipping "PING" calls, which should give you the expected behavior.

The updated RealThinClient SDK (v7.76) is now available for download.

Best Regards,
Danijel Tkalcec
Logged
HelgeLange
RTC Expired
*
Posts: 100


« Reply #4 on: February 05, 2017, 07:46:55 PM »

Thanks, awesome work, mate!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 17 queries.