From 93e3848ea76e755477bec8d9540a3c4c31ea7320 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Thu, 13 Jul 2017 14:32:40 +0200 Subject: Terminate on interface deletion Program now terminates when the interface is removed Increases the number of os threads (relevant for Go <1.5, not tested) More consistent commenting Improved logging (additional peer information) --- src/constants.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/constants.go') diff --git a/src/constants.go b/src/constants.go index 0384741..6b0d414 100644 --- a/src/constants.go +++ b/src/constants.go @@ -29,6 +29,6 @@ const ( QueueInboundSize = 1024 QueueHandshakeSize = 1024 QueueHandshakeBusySize = QueueHandshakeSize / 8 - MinMessageSize = MessageTransportSize // keep-alive - MaxMessageSize = 4096 // TODO: make depend on the MTU? + MinMessageSize = MessageTransportSize // size of keep-alive + MaxMessageSize = (1 << 16) - 1 ) -- cgit v1.2.3