Skip to content

TSI socket does not obey read limits or write buffer high-watermarks #15296

Closed as not planned

Description

@yihuazhang

The current TSI socket implementation has the following problems:

  1. It uses a default max frame size - 1MB defined in gRPC ALTS TSI implementations. It is considered too large and also inconsistent with SSL socket, which is 16KB.
  2. TsiSocket doRead() does not obey read limits by doing an unbounded read from a raw socket.
  3. TsiSocket doWrite() has the problems of 1) inefficient memory usage by protecting full input data into an internal buffer and 2) potentially losing the data stored in the internal buffer that has yet been flushed to the network.

Activity

  1. added
    triage
    on Mar 3, 2021
  2. yihuazhang commented on Mar 3, 2021

    @yihuazhang
    ContributorAuthor
  3. removed
    triage
    on Mar 3, 2021
  4. antoniovicente commented on Mar 3, 2021

    @antoniovicente
    Contributor

    ALTS / TSI is for the most part only used by Google. I assume your team will drive the fixes to this component.

  5. htuch commented on Mar 4, 2021

    @htuch
    Member

    While Google is the developer of ALTS, it's actually used by many GCP users, so anyone running Envoy on GCP probably has some interest in this bug resolution.

  6. github-actions commented on Apr 3, 2021

    @github-actions

    This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

  7. added
    stale
    on Apr 3, 2021
  8. added
    no stalebot
    and removed
    stale
    on Apr 5, 2021
  9. removed
    no stalebot
    on Oct 8, 2024
  10. github-actions commented on Nov 7, 2024

    @github-actions

    This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

  11. added
    stale
    on Nov 7, 2024
  12. github-actions commented on Nov 15, 2024

    @github-actions

    This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

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

Metadata

Metadata

Assignees

Labels

bugstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions