Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • briar briar
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 788
    • Issues 788
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • briar
  • briarbriar
  • Issues
  • #1319

Closed
Open
Created Jun 20, 2018 by akwizgran@akwizgranOwner

Add backpressure to simplex outgoing sync sessions

SimplexOutgoingSession reads acks and messages from the database as quickly as possible and queues them for transmission. If the DB is faster than the transport, this will result in all sendable acks and messages being queued. This uses an unbounded amount of memory and increases the risk of acks or messages being lost before they're transmitted, leading to unnecessary retransmissions.

Add a backpressure mechanism that limits the amount of queued data and delays DB reads when the queue is full.

Assignee
Assign to
Time tracking