diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-24 16:56:29 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-24 16:56:29 +0200 |
commit | 9e35210a5a2af5bbb7818e90c02148471f544f2b (patch) | |
tree | 9cfeeb5de43271c40571c7aa6c900fbc29e1fd68 /server_timing_test.go | |
parent | Added support for 'Connection: Upgrade', so RequestHandler may detect such co... (diff) | |
download | fasthttp-9e35210a5a2af5bbb7818e90c02148471f544f2b.tar.gz fasthttp-9e35210a5a2af5bbb7818e90c02148471f544f2b.tar.bz2 fasthttp-9e35210a5a2af5bbb7818e90c02148471f544f2b.zip |
Fixed possible data race on RequestCtx.TimeoutError if connection's buffered reader is attached to ctx.fbr
Diffstat (limited to 'server_timing_test.go')
-rw-r--r-- | server_timing_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server_timing_test.go b/server_timing_test.go index 679208c..739be01 100644 --- a/server_timing_test.go +++ b/server_timing_test.go @@ -157,8 +157,8 @@ func BenchmarkServerMaxConnsPerIP(b *testing.B) { } func BenchmarkServerTimeoutError(b *testing.B) { - clientsCount := 1 - requestsPerConn := 10 + clientsCount := 10 + requestsPerConn := 1 ch := make(chan struct{}, b.N) n := uint32(0) responseBody := []byte("123") |