mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Rc12 bonanza - fix hourly refresh bug, bump version number
This commit is contained in:
parent
fede53f570
commit
07ff969422
|
@ -7,7 +7,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "com.mangadex"
|
||||
version = "1.0.0-rc10"
|
||||
version = "1.0.0-rc12"
|
||||
mainClassName = "mdnet.base.MangaDexClient"
|
||||
|
||||
repositories {
|
||||
|
|
|
@ -84,6 +84,11 @@ public class MangaDexClient {
|
|||
counter.set(num + 1);
|
||||
}
|
||||
|
||||
// if the server is offline then don't try and refresh certs
|
||||
if (engine == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (clientSettings.getMaxBandwidthMibPerHour() != 0 && clientSettings.getMaxBandwidthMibPerHour() * 1024
|
||||
* 1024 /* MiB to bytes */ < statistics.get().getBytesSent().get()) {
|
||||
if (LOGGER.isInfoEnabled()) {
|
||||
|
@ -95,11 +100,6 @@ public class MangaDexClient {
|
|||
}
|
||||
}
|
||||
|
||||
// if the server is offline then don't try and refresh certs
|
||||
if (engine == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
ServerSettings n = serverHandler.pingControl(serverSettings);
|
||||
|
||||
if (LOGGER.isInfoEnabled()) {
|
||||
|
|
|
@ -39,7 +39,6 @@ import javax.crypto.CipherOutputStream
|
|||
import javax.crypto.spec.SecretKeySpec
|
||||
|
||||
private val LOGGER = LoggerFactory.getLogger("Application")
|
||||
private val THREADS_TO_ALLOCATE = 65535 // Have it at the maximum open sockets a user can have in most modern OSes. No reason to limit this, just limit it at the Netty side.
|
||||
|
||||
fun getServer(cache: DiskLruCache, serverSettings: ServerSettings, clientSettings: ClientSettings, statistics: AtomicReference<Statistics>): Http4kServer {
|
||||
val executor = Executors.newCachedThreadPool()
|
||||
|
@ -55,8 +54,9 @@ fun getServer(cache: DiskLruCache, serverSettings: ServerSettings, clientSetting
|
|||
.setSocketTimeout(3000)
|
||||
.setConnectionRequestTimeout(3000)
|
||||
.build())
|
||||
.setMaxConnTotal(THREADS_TO_ALLOCATE)
|
||||
.setMaxConnPerRoute(THREADS_TO_ALLOCATE)
|
||||
.setMaxConnTotal(65535)
|
||||
.setMaxConnPerRoute(65535)
|
||||
// Have it at the maximum open sockets a user can have in most modern OSes. No reason to limit this, just limit it at the Netty side.
|
||||
.build())
|
||||
|
||||
val app = { dataSaver: Boolean ->
|
||||
|
|
Loading…
Reference in a new issue