Browse Source

rpc: client disable compression (#3430)

pull/3452/head
zjubfd 5 years ago
committed by Ethan Buchman
parent
commit
03085c2da2
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      rpc/lib/client/http_client.go

+ 3
- 1
rpc/lib/client/http_client.go View File

@ -74,7 +74,9 @@ func makeHTTPClient(remoteAddr string) (string, *http.Client) {
protocol, address, dialer := makeHTTPDialer(remoteAddr)
return protocol + "://" + address, &http.Client{
Transport: &http.Transport{
Dial: dialer,
// Set to true to prevent GZIP-bomb DoS attacks
DisableCompression: true,
Dial: dialer,
},
}
}


Loading…
Cancel
Save