Skip to content

Commit 5213814

Browse files
Update http4s-blaze-client, ... to 0.21.17 (#443)
* Update http4s-blaze-client, ... to 0.21.17 * fix!: Remove nio2 configuration after http4s blaze upgrade feat: Add configuration for maxConnections BREAKING CHANGE: nio2 is no longer available for blaze server * chore: Update http4s version * Revert "chore: Update http4s version" This reverts commit b26f0f88π Co-authored-by: Janecek Jakub <[email protected]>
1 parent 971cd74 commit 5213814

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

http4s-server-blaze/src/main/scala/com/avast/sst/http4s/server/Http4sBlazeServerConfig.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ import scala.concurrent.duration.{Duration, FiniteDuration}
1010
final case class Http4sBlazeServerConfig(
1111
listenAddress: String,
1212
listenPort: Int,
13-
nio2Enabled: Boolean = true,
1413
webSocketsEnabled: Boolean = false,
1514
http2Enabled: Boolean = false,
1615
responseHeaderTimeout: FiniteDuration = Duration(defaults.ResponseTimeout.toNanos, TimeUnit.NANOSECONDS),
1716
idleTimeout: FiniteDuration = Duration(defaults.IdleTimeout.toNanos, TimeUnit.NANOSECONDS),
1817
bufferSize: Int = 64 * 1024,
1918
maxRequestLineLength: Int = 4 * 1024,
20-
maxHeadersLength: Int = 40 * 1024,
19+
maxHeadersLength: Int = defaults.MaxHeadersSize,
2120
chunkBufferMaxSize: Int = 1024 * 1024,
2221
connectorPoolSize: Int = channel.DefaultPoolSize,
22+
maxConnections: Int = defaults.MaxConnections,
2323
socketOptions: SocketOptions = SocketOptions()
2424
)
2525

http4s-server-blaze/src/main/scala/com/avast/sst/http4s/server/Http4sBlazeServerModule.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ object Http4sBlazeServerModule {
3131
.bindSocketAddress(inetSocketAddress)
3232
.withHttpApp(httpApp)
3333
.withoutBanner
34-
.withNio2(config.nio2Enabled)
3534
.withWebSockets(config.webSocketsEnabled)
3635
.enableHttp2(config.http2Enabled)
3736
.withResponseHeaderTimeout(Duration.fromNanos(config.responseHeaderTimeout.toNanos))
@@ -41,6 +40,7 @@ object Http4sBlazeServerModule {
4140
.withMaxHeadersLength(config.maxHeadersLength)
4241
.withChunkBufferMaxSize(config.chunkBufferMaxSize)
4342
.withConnectorPoolSize(config.connectorPoolSize)
43+
.withMaxConnections(config.maxConnections)
4444
.withChannelOption[java.lang.Boolean](StandardSocketOptions.TCP_NODELAY, config.socketOptions.tcpNoDelay)
4545
.resource
4646
} yield server

project/Dependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object Dependencies {
4747
val datastaxJavaDriverCore = "4.10.0"
4848
val doobie = "0.10.0"
4949
val grpc = "1.35.0"
50-
val http4s = "0.21.16"
50+
val http4s = "0.21.17"
5151
val micrometerCore = "1.6.3"
5252
val micrometerJmx = "1.6.3"
5353
val micrometerStatsD = "1.6.3"

0 commit comments

Comments
 (0)