HomePhabricator
Diffusion Comm 5d2497b42072

[services] Tunnelbroker - Add ping implementation to the `Get` handler

Description

[services] Tunnelbroker - Add ping implementation to the Get handler

Summary:
This diff introduces adding of ping thread into the GetResponse handler to check if the device is online.
The ping message from the D5173 will be sent to the client in a ping interval introduced in D5151. By pinging the client in a unidirectional Get stream we will be sure that the client is online and update the state of the client in the database using the method from D5165.
We can use the same approach when changing to the bidirectional stream in a near future in v.0.5.

This is a part of the stack.

Related Linear task: ENG-1766

Test Plan: Successfully built the server and the follow-up diffs in the stack.

Reviewers: jon, tomek, karol

Reviewed By: jon, tomek

Subscribers: ashoat, tomek, atul, karol, abosh

Differential Revision: https://phab.comm.dev/D5174