Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33310676
D5206.1768808733.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
909 B
Referenced Files
None
Subscribers
None
D5206.1768808733.diff
View Options
diff --git a/services/tunnelbroker/src/Service/TunnelbrokerServiceImpl.cpp b/services/tunnelbroker/src/Service/TunnelbrokerServiceImpl.cpp
--- a/services/tunnelbroker/src/Service/TunnelbrokerServiceImpl.cpp
+++ b/services/tunnelbroker/src/Service/TunnelbrokerServiceImpl.cpp
@@ -226,6 +226,16 @@
grpc::StatusCode::PERMISSION_DENIED,
"No such session found. SessionID: " + sessionID);
}
+
+ // Handling of device notification token expiration and update
+ if (request->has_newnotifytoken() &&
+ !database::DatabaseManager::getInstance().updateSessionItemDeviceToken(
+ sessionID, request->newnotifytoken())) {
+ return grpc::Status(
+ grpc::StatusCode::INTERNAL,
+ "Can't update device token in the database");
+ }
+
const std::string clientDeviceID = sessionItem->getDeviceID();
DeliveryBrokerMessage messageToDeliver;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 7:45 AM (10 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5955247
Default Alt Text
D5206.1768808733.diff (909 B)
Attached To
Mode
D5206: [services] Tunnelbroker - Update handling of the `newNotifyToken` in `Get` stream request
Attached
Detach File
Event Timeline
Log In to Comment