Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #51 from safing/fix/increase-queue-sizes
Browse files Browse the repository at this point in the history
Increase queue sizes
  • Loading branch information
dhaavi authored Jan 31, 2022
2 parents 616f25b + e854212 commit faba5ae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docks/crane_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (crane *Crane) startLocal() *terminal.Error {

// Create crane controller.
_, initData, tErr := NewLocalCraneControllerTerminal(crane, &terminal.TerminalOpts{
QueueSize: 10000,
QueueSize: terminal.DefaultQueueSize,
Padding: 8,
})
if tErr != nil {
Expand Down
2 changes: 1 addition & 1 deletion docks/op_capacity.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const (
capacityTestTimeout = 30 * time.Second

capacityTestMsgSize = 1000
capacityTestSendTimeout = 100 * time.Millisecond
capacityTestSendTimeout = 1000 * time.Millisecond
)

var (
Expand Down
2 changes: 1 addition & 1 deletion docks/terminal_expansion.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func ExpandTo(t terminal.OpTerminal, routeTo string, encryptFor *hub.Hub) (*Expa
// Create expansion terminal.
opts := &terminal.TerminalOpts{
Version: 1,
QueueSize: 100,
QueueSize: terminal.DefaultQueueSize,
}
tBase, initData, tErr := terminal.NewLocalBaseTerminal(context.Background(), 0, t.FmtID(), encryptFor, opts)
if tErr != nil {
Expand Down
4 changes: 2 additions & 2 deletions terminal/flow_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
)

const (
DefaultQueueSize = 1000
MaxQueueSize = 60000
DefaultQueueSize = 50000
MaxQueueSize = 1000000
forceReportBelowPercent = 0.75
)

Expand Down

0 comments on commit faba5ae

Please sign in to comment.