RejectedExecutionException because of sendDegradedPingLater
See original GitHub issueHello,
Since we have updated our Android app DAVx⁵ from okhttp 3.12.5 to 3.12.7, we start receiving these exceptions:
java.util.concurrent.RejectedExecutionException:
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution (ThreadPoolExecutor.java:2104)
at java.util.concurrent.ThreadPoolExecutor.reject (ThreadPoolExecutor.java:848)
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute (ScheduledThreadPoolExecutor.java:334)
at java.util.concurrent.ScheduledThreadPoolExecutor.schedule (ScheduledThreadPoolExecutor.java:562)
at java.util.concurrent.ScheduledThreadPoolExecutor.execute (ScheduledThreadPoolExecutor.java:654)
at okhttp3.internal.http2.Http2Connection.sendDegradedPingLater (Http2Connection.java:598)
at okhttp3.internal.http2.Http2Stream$StreamTimeout.timedOut (Http2Stream.java:668)
at okio.AsyncTimeout$Watchdog.run (AsyncTimeout.kt:198)
It’s not that often, but this exception was not there before. I think it occurs when
- a thread with okhttp I/O is
interrupt()
ed (because the user cancels the action), and - okhttp tries to send a delayed HTTP/2 ping on such an interrupted channel later.
Unfortunately, I can’t provide reliable steps to reproduce yet. Is this however a problem you can imagine to happen or do you need more information?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:7 (6 by maintainers)
Top Results From Across the Web
java - What could be the cause of RejectedExecutionException
New tasks submitted in method execute(java.lang.Runnable) will be rejected when the Executor has been shut down, and also when the Executor uses ...
Read more >RejectedExecutionException (Java SE 17 & JDK 17)
Constructs a RejectedExecutionException with the specified detail message and cause. RejectedExecutionException(Throwable cause).
Read more >RejectedExecutionException Class (Java.Util.Concurrent)
Constructs a RejectedExecutionException with the specified cause. Fields. is_generated, (Inherited from Throwable). Properties. Cause.
Read more >RejectedExecutionException | Bitbucket Data Center and ...
Cause. The error message RejectedExecutionException indicates events are being raised faster than they can be handled by listeners.
Read more >How to deal with java.util.concurrent ...
RejectedExecutionException: ThreadPoolExecutor did not accept within 30000 MILLISECONDS and your batch job stopped processing records.
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 FreeTop 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
Top GitHub Comments
Can fix!
https://square.github.io/okhttp/changelog_3x/