Fix an issue with reusing closed network connetion, changing the way rateLimitedListener is initialized

This commit is contained in:
Harshavardhana
2015-07-16 10:56:14 -07:00
parent dc11a411c7
commit 1f2e6a40a0
3 changed files with 9 additions and 12 deletions

View File

@@ -87,7 +87,7 @@ func getAPIServer(conf api.Config, apiHandler http.Handler) (*http.Server, error
func getRPCServer(rpcHandler http.Handler) *http.Server {
// Minio server config
httpServer := &http.Server{
Addr: "127.0.0.1:9001", // TODO make this configurable
Addr: ":9001", // TODO make this configurable
Handler: rpcHandler,
MaxHeaderBytes: 1 << 20,
}