diff --git a/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt b/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt index f1d00c8a..53ac7709 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt @@ -38,6 +38,9 @@ open class Starter private val log = LoggerFactory.getLogger(Starter::class.java) fun main(args: Array) { + System.getenv()["HTTP_REQ_TIMEOUT"] + ?.let { System.setProperty("sun.net.httpserver.maxReqTime", it) } + ContextRegistry.getInstance().registerThreadLocalAccessor(Slf4jThreadLocalAccessor()) Hooks.enableAutomaticContextPropagation() OpenSsl.ensureAvailability()