Skip to content

Commit

Permalink
Fix example config for haproxy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimmerGlass committed Sep 9, 2020
1 parent 9afcb76 commit f50bd23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions mirror/modules/sink/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func (m *HTTP) runWorker(req mirror.Request) {
m.sendRequest(req)
timeout.Reset(workerTimeout)
case <-timeout.C:
m.numWorkers--
break
}
}
Expand Down
4 changes: 1 addition & 3 deletions test/haproxy/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ global
nbthread 64
maxconn 5000
hard-stop-after 10s
tune.ssl.default-dh-param 2048
debug
stats socket /tmp/haproxy.sock mode 666 level admin

defaults
Expand Down Expand Up @@ -44,4 +42,4 @@ backend spoe-mirror-backend
balance roundrobin
timeout connect 5s
timeout server 1m
server spoe-test-server-1 127.0.0.1:9999
server spoe-test-server-1 127.0.0.1:9999
6 changes: 3 additions & 3 deletions test/haproxy/spoe.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
spoe-agent mirror
# option set-on-error err
# option set-process-time ptime
# option set-total-time ttime
# option var-prefix spoe
# option set-total-time ttime
messages mirror

timeout hello 500ms
timeout idle 10s
timeout idle 35s
timeout processing 100ms
use-backend spoe-mirror-backend

spoe-message mirror
args method=method path=url ver=req.ver headers=req.hdrs_bin body=req.body
event on-frontend-http-request
event on-frontend-http-request

0 comments on commit f50bd23

Please sign in to comment.