Skip to content

Fix error after homekit viewer stops viewing a stream #2772

Done

Description

@titovskiy

After I open the stream view via HomeKit and complete it, an error of the form appears in the logs
undefined error=write tcp 192.168.0.16:1984->192.168.0.137:49967: use of closed network connection caller=github.com/AlexxIT/go2rtc/internal/homekit/server.go:125

Screenshot 2026-11-29 at 11 49 16

Activity

  1. added
    kind/bug
    area/homekit
    on Nov 29, 2026
  2. RyoKusnadi commented on Nov 29, 2026

    @RyoKusnadi
    Contributor

    Turns out ending the stream closes the whole HAP connection to the iPhone (Consumer.Stop closes its Transport), so the reply to that request fails. Opened #2776 for it. @AlexxIT mind taking a look?

  3. changed the title [-]Error after end view stream in HomeKit[/-] [+]Fix error after homekit viewer stops viewing a stream[/+] on Nov 29, 2026
  4. added this to the master milestone on Nov 29, 2026
  5. AlexxIT commented on Nov 29, 2026

    @AlexxIT
    Owner

    Fixed in master

  6. AlexxIT commented on Nov 29, 2026

    @AlexxIT
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/homekitkind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions