1
0
Эх сурвалжийг харах

Merge branch 'master' into version/4

DarthSim 1 сар өмнө
parent
commit
84824a544e

+ 3 - 0
CHANGELOG.md

@@ -1,6 +1,9 @@
 # Changelog
 
 ## [Unreleased]
+### Added
+- (pro) Add [color_profile](https://docs.imgproxy.net/latest/usage/processing#color-profile) processing option and [IMGPROXY_COLOR_PROFILES_DIR](https://docs.imgproxy.net/latest/configuration/options#IMGPROXY_COLOR_PROFILES_DIR) config
+
 ### Changed
 - (pro) Improve video decoding performance.
 - (pro) Respond with `422 Unprocessable Entity` on error during video decoding.

+ 6 - 0
transport/generichttp/generic_http.go

@@ -36,6 +36,10 @@ func New(verifyNetworks bool) (*http.Transport, error) {
 		ExpectContinueTimeout: 1 * time.Second,
 		ForceAttemptHTTP2:     false,
 		DisableCompression:    true,
+
+		HTTP2: &http.HTTP2Config{
+			MaxReceiveBufferPerStream: 128 * 1024,
+		},
 	}
 
 	if config.ClientKeepAliveTimeout <= 0 {
@@ -52,6 +56,8 @@ func New(verifyNetworks bool) (*http.Transport, error) {
 		return nil, err
 	}
 
+	// TODO: Move this to transport.HTTP2 when https://go.dev/issue/67813 is closed
+	transport2.MaxReadFrameSize = 16 * 1024
 	transport2.PingTimeout = 5 * time.Second
 	transport2.ReadIdleTimeout = time.Second