Skip to content
Permalink
Browse files Browse the repository at this point in the history
rpc: client disable compression (#3430)
  • Loading branch information
zjubfd authored and ebuchman committed Mar 20, 2019
1 parent 7af4b50 commit 03085c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rpc/lib/client/http_client.go
Expand Up @@ -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,
},
}
}
Expand Down

0 comments on commit 03085c2

Please sign in to comment.