Skip to content

Consent check failures during graceful shutdown #206

@surkov-sesame

Description

@surkov-sesame

Description

It seems that my aiortc clients get disconnected from Stunner prematurely due to failed consent checks during a graceful shutdown period.

Steps to Reproduce

  • I have an aiortc server using Stunner as TURN server in headless mode
  • Stunner is running on GKE
  • when GKE starts a deploy, Stunner enters graceful shutdown as expected, however aiortc consent checks begin failing and aiortc disconnects with "Consent to send expired" well before the Stunner pod exits

Timing in Stunner logs:

Jul 25 12:30:03.087
19:30:03.014008 main.go:171: stunnerd INFO: Normal exit on graceful shutdown
Jul 25 12:19:42.696
19:19:41.727628 main.go:180: stunnerd INFO: Canceling config loader
Jul 25 12:19:42.696
19:19:41.727574 main.go:175: stunnerd INFO: Commencing graceful shutdown with 26 active connection(s)

And aiortc consent checks fail at around 12:27, so ~3 minutes before stunnerd actually exits.

Expected behavior:

  • STUNner pod keeps running for 1h or until the call ends

Actual behavior:

  • aiortc client disconnects due to failed consent checks

Versions

Stunner 1.1.0

Info

Gateway API status

get.txt

Operator logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions