Skip to content

Maintain counts of written bytes and padding for connection #5

Open
@louiscryan

Description

@louiscryan

If the spec is only dumping information for current streams then to be able to diagnose issues in the assignment of the current available connection-window bytes to streams for actual writes we would need to know how many bytes & padding bytes were written for the lifetime of the connection.

It seems like we could get rid of the conn* prefixed entries and just always have a stream '0' in the map to represent this state.

An example implementation issue is that a flow-control implementation grants a slice of the connection window to a stream to allow it to write, the stream is reset and the write never occurs but the granted slice is not returned. This zombie slice of allocated connection window eventually causes starvation.

The dump would show this behavior by:

  • the total number of bytes written on the connection is less than the aggregate window received
  • sampling the streams over time would show them as stalled as the number by bytes written was unchanged

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions