mirror of
https://github.com/minio/minio.git
synced 2025-01-24 05:03:16 -05:00
do not need response record body (#19949)
since the connection is active, the response recorder body can grow endlessly causing leak, as this bytes buffer is never given back to GC due to an goroutine.
This commit is contained in:
parent
2f9018f03b
commit
d2fb371f80
@ -436,7 +436,7 @@ func registerAPIRouter(router *mux.Router) {
|
|||||||
Queries("notification", "")
|
Queries("notification", "")
|
||||||
// ListenNotification
|
// ListenNotification
|
||||||
router.Methods(http.MethodGet).
|
router.Methods(http.MethodGet).
|
||||||
HandlerFunc(s3APIMiddleware(api.ListenNotificationHandler, noThrottleS3HFlag)).
|
HandlerFunc(s3APIMiddleware(api.ListenNotificationHandler, noThrottleS3HFlag, traceHdrsS3HFlag)).
|
||||||
Queries("events", "{events:.*}")
|
Queries("events", "{events:.*}")
|
||||||
// ResetBucketReplicationStatus - MinIO extension API
|
// ResetBucketReplicationStatus - MinIO extension API
|
||||||
router.Methods(http.MethodGet).
|
router.Methods(http.MethodGet).
|
||||||
@ -615,7 +615,7 @@ func registerAPIRouter(router *mux.Router) {
|
|||||||
|
|
||||||
// ListenNotification
|
// ListenNotification
|
||||||
apiRouter.Methods(http.MethodGet).Path(SlashSeparator).
|
apiRouter.Methods(http.MethodGet).Path(SlashSeparator).
|
||||||
HandlerFunc(s3APIMiddleware(api.ListenNotificationHandler, noThrottleS3HFlag)).
|
HandlerFunc(s3APIMiddleware(api.ListenNotificationHandler, noThrottleS3HFlag, traceHdrsS3HFlag)).
|
||||||
Queries("events", "{events:.*}")
|
Queries("events", "{events:.*}")
|
||||||
|
|
||||||
// ListBuckets
|
// ListBuckets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user