Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Add setter to change max packets into queue buffer (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaplygin authored and kamilogorek committed Apr 19, 2019
1 parent 5c2ecc3 commit b7151a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ func (c *context) interfaces() []Interface {
// Packets will be dropped if the buffer is full. Used by NewClient.
var MaxQueueBuffer = 100

func SetMaxQueueBuffer(maxCount int) {
MaxQueueBuffer = maxCount
}

func newTransport() Transport {
t := &HTTPTransport{}
rootCAs, err := gocertifi.CACerts()
Expand Down

0 comments on commit b7151a1

Please # to comment.