Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/scala/Docker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ object Docker {
)
val http0 = new Http().configure { builder =>
val config = builder.build()
val updatedProvider = config.getAsyncHttpProviderConfig match {
val currentProvider = Option(config.getAsyncHttpProviderConfig)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm actually surprised this can be null. This modifies the default config provided by dispatch. It's it possible there is a bug upstream?

.getOrElse(new NettyAsyncHttpProviderConfig())
val updatedProvider = currentProvider match {
case netty: NettyAsyncHttpProviderConfig =>
netty.addProperty(
NettyAsyncHttpProviderConfig.SOCKET_CHANNEL_FACTORY,
Expand Down