readTimeout and connectTimeout have no affect if server does return HTTP headers
See original GitHub issueWhen server establishes a socket connection, but never sends anything back HttpCleint gets stuck
at java.base@11.0.14/jdk.internal.misc.Unsafe.park(Native Method)
at java.base@11.0.14/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
at java.base@11.0.14/java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1796)
at java.base@11.0.14/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3128)
at java.base@11.0.14/java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1823)
at java.base@11.0.14/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1998)
at platform/java.net.http@11.0.14/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:541)
at platform/java.net.http@11.0.14/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
at app//com.github.mizosoft.methanol.Methanol$InterceptorChain.forward(Methanol.java:775)
at app//com.github.mizosoft.methanol.Methanol$ReadTimeoutInterceptor.intercept(Methanol.java:944)
at app//com.github.mizosoft.methanol.Methanol$InterceptorChain.forward(Methanol.java:780)
at app//com.github.mizosoft.methanol.Methanol$AutoDecompressingInterceptor.intercept(Methanol.java:884)
at app//com.github.mizosoft.methanol.Methanol$InterceptorChain.forward(Methanol.java:780)
at app//com.github.mizosoft.methanol.Methanol$RequestRewritingInterceptor.intercept(Methanol.java:828)
at app//com.github.mizosoft.methanol.Methanol$InterceptorChain.forward(Methanol.java:780)
at app//com.github.mizosoft.methanol.Methanol.send(Methanol.java:300)
I don’t think it is a Methanol issue itself, but maybe at can be fixed with a little help from Methanol ?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
What is a connection timeout during a http request
Once the connection has been established, the client must keep informing the server that it is still there by periodically sending information.
Read more >HTTPClient setTimeout hasn't any effect · Issue #1433 - GitHub
Time out is in miliseconds and it works 100%. I use like this: http.setTimeout(5000); httpResponseCode = http.GET(); //Make the request. Means ...
Read more >Timeout settings for HTTP and HTTPS communication - IBM
The exception to this rule occurs for responses returned over HTTP (TCP). In this case, there is no timeout between response fragments.
Read more >A Complete Guide to Timeouts in Node.js - Better Stack
Assigning timeout values prevents network operations in Node.js from blocking indefinitely. This article provides extensive instruction on ...
Read more >The complete guide to Go net/http timeouts
ReadTimeout covers the time from when the connection is accepted to when the request body is fully read (if you do read the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Should be able to finally cut the
1.7.0
release in about a week.Great that you found time to make this! Would it be released any time soon?