Skip to content

Commit

Permalink
Fix crash on 386
Browse files Browse the repository at this point in the history
  • Loading branch information
SegHaxx committed Nov 20, 2019
1 parent 363b1fe commit 151cbaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ var (

// A conn represents the server side of an HTTP connection.
type conn struct {
curState struct{ atomic uint64 } // packed (unixtime<<8|uint8(ConnState))

// server is the server on which the connection arrived.
// Immutable; never nil.
server *Server
Expand Down Expand Up @@ -245,8 +247,6 @@ type conn struct {
lastMethod string

curReq atomic.Value // of *response (which has a Request in it)

curState struct{ atomic uint64 } // packed (unixtime<<8|uint8(ConnState))
}

// This should be >= 512 bytes for DetectContentType,
Expand Down
2 changes: 1 addition & 1 deletion make.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
go build -gcflags "-m" -ldflags="-s -w"
GOARCH=386 go build -gcflags "-m" -ldflags="-s -w"
strip -s --strip-unneeded -R .comment -R .note -R .note.ABI-tag ezhttpd.exe

0 comments on commit 151cbaf

Please sign in to comment.