Skip to content

bug: devcontainers /watch endpoint reads from empty channel when message over 32KiB is received #19372

@DanielleMaywood

Description

@DanielleMaywood

Problem

In the devcontainer /watch endpoint, we only allow a maximum message payload of 32KiB to be read on coderd from the agent. If you have many devcontainers, or a devcontainer with many apps, this limit is easily reached. Once this happens, we fail to detect that the websocket has been closed and then send an empty message over the websocket to the site forever on loop.

Solution

  • Increase websocket payload limit
  • Detect when the websocket channel is closed and close the websocket.

Metadata

Metadata

Labels

s2Broken use cases or features (with a workaround). Only humans may set this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy