From 70b2b220476361be07a116615fc51f164aeba826 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 8 May 2018 17:40:16 +0200 Subject: [PATCH] fix #1087 --- transport/pipe/pipe.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transport/pipe/pipe.go b/transport/pipe/pipe.go index 7ba3976c..0c85ad64 100644 --- a/transport/pipe/pipe.go +++ b/transport/pipe/pipe.go @@ -57,5 +57,7 @@ func init() { Name: raySizeEnvKey, AltName: platform.NormalizeEnvName(raySizeEnvKey), }.GetValueAsInt(10) - defaultLimit = int32(size) * 1024 * 1024 + if size > 0 { + defaultLimit = int32(size) * 1024 * 1024 + } }