From 6cbd3ab096ab53541bccaf7b9de98b042e180af9 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 22 Sep 2015 16:47:39 -0600 Subject: [PATCH] proxy: 64-bit word alignment for 32-bit systems (fixes #252) --- middleware/proxy/proxy.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/middleware/proxy/proxy.go b/middleware/proxy/proxy.go index 25f2a45dc..9b8fed21f 100644 --- a/middleware/proxy/proxy.go +++ b/middleware/proxy/proxy.go @@ -33,10 +33,9 @@ type UpstreamHostDownFunc func(*UpstreamHost) bool // UpstreamHost represents a single proxy upstream type UpstreamHost struct { - // The hostname of this upstream host - Name string + Conns int64 // must be first field to be 64-bit aligned on 32-bit systems + Name string // hostname of this upstream host ReverseProxy *ReverseProxy - Conns int64 Fails int32 FailTimeout time.Duration Unhealthy bool