Closed maxl2287 closed 6 months ago
After a short review I will close this issue. This functionality to delete the session-resourcem at least in 360s after the network terminated the session, was planned for Clients without the possibility of receiving CloudEvents.
For this special use-case where the duration of the session is lower than 360s and will be terminated by the network, the session-resource will be "extended" at least for 360s so that Clients are able to poll for the session to see a possible status-change of the session.
My understanding is that the intention of that phrase is to remark that the session object is not deleted inmediately, that is 404 is not to be returned. But that does not affect the session duration or qosStatus. It may happen that the returned session is already expired in that extra 360-seconds or more
Describe the bug
When I create a session with a duration of, for example, 40, and after 20 seconds the network terminates the session, then (as described in the specification), the session will be deleted at the earliest after 360 seconds. This creates confusion regarding whether the session will be extended to last for additional 6 minutes in this case, but it should expire in the next seconds.
Expected behavior IF Network terminates the session AND the remaining duration is smaller than 360s, THEN let it expire and send a CloudEvent with
qosStatus: UNAVAILABLE
andstatusInfo: NETWORK_TERMINATED
ELSE let the session expire in 360s and send a CloudEvent withqosStatus: UNAVAILABLE
andstatusInfo: NETWORK_TERMINATED