stream: actually read coalesce-writes setting from config (#30353)

This commit is contained in:
Johannes Rudolph 2021-07-01 13:58:36 +02:00 committed by GitHub
parent 53727df35a
commit dd289e7e2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -778,7 +778,9 @@ object IOSettings {
"Use setting 'akka.stream.materializer.io.tcp.write-buffer-size' or attribute TcpAttributes.writeBufferSize instead",
"2.6.0")
def apply(config: Config): IOSettings =
new IOSettings(tcpWriteBufferSize = math.min(Int.MaxValue, config.getBytes("tcp.write-buffer-size")).toInt)
new IOSettings(
tcpWriteBufferSize = math.min(Int.MaxValue, config.getBytes("tcp.write-buffer-size")).toInt,
coalesceWrites = config.getInt("tcp.coalesce-writes"))
@deprecated(
"Use setting 'akka.stream.materializer.io.tcp.write-buffer-size' or attribute TcpAttributes.writeBufferSize instead",