Comments (4)
Thank you for filing this question @if-of.
Did some investigation, this appears to be the default behavior of OkHttp's Dispatcher
class, which in turn by default we don't modify when OkHttp is being used leaving that configuration to the application to handle.
Looking at Dispatcher
it uses a ThreadFactory
that creates non-daemon threads for the ExecutorService
backing the Dispatcher
(https://github.com/square/okhttp/blob/master/okhttp/src/main/kotlin/okhttp3/Dispatcher.kt#L103, https://github.com/square/okhttp/blob/master/okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt#L65).
The good news, our OkHttp HttpClient builder allows for configuration of the Dispatcher
being used. So, a simple work around could be supplying your own Dispatcher
that doesn't use daemon threads, therefore prevents the Dispatcher
from preventing JVM shutdown while the threads time out in the ExecutorService
.
from azure-sdk-for-java.
Thank you, @alzimmermsft. Your workaround effectively solved my issue, eliminating the 60-second wait time.
P.S: It's quite unfortunate that this isn't the default behavior. However, considering the simplicity of the fix, it's not much of an inconvenience.
from azure-sdk-for-java.
Hi @if-of. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-java.
Hi @if-of, since you haven’t asked that we /unresolve
the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve
to reopen the issue.
from azure-sdk-for-java.
Related Issues (20)
- [BUG] Blob Storage Cryptography encode special characters in blob names HOT 2
- [FEATURE REQ] - Check Dynamic Request Options Functionality and Create Sample in Spring
- azure-json, migrate existing premium MGMT libs
- [OpenAI-Assistants] Add support for `v2024-07-01-preview` AOAI service release
- [OpenAI-Inference] Add support for `v2024-07-01-preview` AOAI service release
- java.lang.NullPointerException when application properties with null value are present HOT 2
- [BUG] Path is url-encoded twice when using the DataLakePathClientBuilder HOT 2
- [FEATURE REQ] Make `CosmosPatchOperations#getPatchOperations()` public to allow easier testing (mocking and asserting) HOT 1
- [BUG] HOT 1
- DocumentIntelligence 1099r Prebuilt Tax Model box 14 value contains unparsed currency amount HOT 4
- [BUG] Type error in FunctionsScaleAndConcurrency
- AzurePowerShellCredential fails to generate token due to deprecation message in Az 12.1.0 HOT 2
- [BUG] `XmlMapperFactory` does not work with `ReflectionUtilsClassic` HOT 3
- [BUG] Displayed filename changed with client side encryption client between bom 1.2.23 and 1.2.24 when listing blobs HOT 2
- [FEATURE REQ] com.azure.json.JsonWriter.writeMapField write null value to the Map field HOT 2
- List AKS Nodes on KubernetesClusters interface HOT 2
- [BUG] GraalVM Error: An object of type 'io.netty.handler.ssl.ReferenceCountedOpenSslContext$1' was found in the image heap
- UUF - azure-dev-docs-pr - Configure proxies in the Azure SDK for Java HOT 1
- IMDS probe requests should throw CredentialUnavailableException for any response that is not valid json
- [FEATURE REQ] Update AadWebApplicationHttpSecurityConfigurer to work with spring-security 7.x HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-java.