Skip to content

Commit bc44fd2

Browse files
committed
more POWER
1 parent eb64b4f commit bc44fd2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ func (a *App) PutRecord(key []byte, rec Record) bool {
6565
// *** Entry Point ***
6666

6767
func main() {
68-
http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = 100
68+
http.DefaultTransport.(*http.Transport).MaxIdleConns = 2500
69+
http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = 500
6970
rand.Seed(time.Now().Unix())
7071

7172
port := flag.Int("port", 3000, "Port for the server to listen on")

0 commit comments

Comments
 (0)