diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-04 16:15:53 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-04 16:15:53 +0200 |
commit | 8c34c4cbb3780c433148966a004f5a51aace0f64 (patch) | |
tree | a590de76c326f6dfe3c92d2e27b78ce2ab792289 /src/constants.go | |
parent | 22c83f4b8d98b6b3c7dabc078e70801d0201876c (diff) |
First set of code review patches
Diffstat (limited to 'src/constants.go')
-rw-r--r-- | src/constants.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/constants.go b/src/constants.go index 09d33d8..f09ded6 100644 --- a/src/constants.go +++ b/src/constants.go @@ -16,6 +16,7 @@ const ( KeepaliveTimeout = time.Second * 10 CookieRefreshTime = time.Second * 120 MaxHandshakeAttemptTime = time.Second * 90 + PaddingMultiple = 16 ) const ( @@ -31,5 +32,5 @@ const ( QueueHandshakeSize = 1024 QueueHandshakeBusySize = QueueHandshakeSize / 8 MinMessageSize = MessageTransportSize // size of keep-alive - MaxMessageSize = (1 << 16) - 1 + MaxMessageSize = ((1 << 16) - 1) + MessageTransportHeaderSize ) |