mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-08 11:58:49 +03:00
proxy: 64-bit word alignment for 32-bit systems (fixes #252)
This commit is contained in:
parent
bdccc51437
commit
6cbd3ab096
1 changed files with 2 additions and 3 deletions
|
@ -33,10 +33,9 @@ type UpstreamHostDownFunc func(*UpstreamHost) bool
|
||||||
|
|
||||||
// UpstreamHost represents a single proxy upstream
|
// UpstreamHost represents a single proxy upstream
|
||||||
type UpstreamHost struct {
|
type UpstreamHost struct {
|
||||||
// The hostname of this upstream host
|
Conns int64 // must be first field to be 64-bit aligned on 32-bit systems
|
||||||
Name string
|
Name string // hostname of this upstream host
|
||||||
ReverseProxy *ReverseProxy
|
ReverseProxy *ReverseProxy
|
||||||
Conns int64
|
|
||||||
Fails int32
|
Fails int32
|
||||||
FailTimeout time.Duration
|
FailTimeout time.Duration
|
||||||
Unhealthy bool
|
Unhealthy bool
|
||||||
|
|
Loading…
Reference in a new issue