Fix stupid bug
This commit is contained in:
parent
76d19d7493
commit
fde00ecb7f
|
@ -82,13 +82,11 @@ class ImageServer(private val cache: DiskLruCache, private val statistics: Atomi
|
|||
.setConnectTimeout(3000)
|
||||
.setSocketTimeout(3000)
|
||||
.setConnectionRequestTimeout(3000)
|
||||
.setLocalAddress(
|
||||
.apply {
|
||||
if (clientHostname != "0.0.0.0") {
|
||||
InetAddress.getByName(clientHostname)
|
||||
} else {
|
||||
InetAddress.getLocalHost()
|
||||
setLocalAddress(InetAddress.getByName(clientHostname))
|
||||
}
|
||||
}
|
||||
)
|
||||
.build())
|
||||
.setMaxConnTotal(THREADS_TO_ALLOCATE)
|
||||
.setMaxConnPerRoute(THREADS_TO_ALLOCATE)
|
||||
|
|
Loading…
Reference in a new issue