Merge pull request #150 from makern/64bit-align

Fix alignment crash on i386
This commit is contained in:
Leonid Bugaev
2015-03-23 13:33:39 +05:00
+5 -1
View File
@@ -51,13 +51,17 @@ func ParseRequest(data []byte) (request *http.Request, err error) {
const InitialDynamicWorkers = 10
type HTTPOutput struct {
// Keep this as first element of struct because it guarantees 64bit
// alignment. atomic.* functions crash on 32bit machines if operand is not
// aligned at 64bit. See https://github.com/golang/go/issues/599
activeWorkers int64
address string
limit int
queue chan []byte
redirectLimit int
activeWorkers int64
needWorker chan int
urlRegexp HTTPUrlRegexp