File tree 2 files changed +5
-1
lines changed
httpclient-okhttp/src/main/java/io/fabric8/kubernetes/client/okhttp
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 5
5
#### Bugs
6
6
* Fix #6247 : Support for proxy authentication from proxy URL user info
7
7
* Fix #6342 : UnmatchedFieldTypeModule prevents certain jackson features from working
8
+ * Fix #6354 : Prevent deadlock in okhttp AsyncBody.cancel
8
9
9
10
### 6.13.3 (2024-08-13)
10
11
Original file line number Diff line number Diff line change @@ -151,7 +151,10 @@ public CompletableFuture<Void> done() {
151
151
152
152
@ Override
153
153
public void cancel () {
154
- Utils .closeQuietly (source );
154
+ // closing from a non dispatcher thread risks deadlock because close is
155
+ // a long-running operation that may need to re-obtain the dispatcher lock
156
+ // and the thread may already be holding other locks
157
+ executor .execute (() -> Utils .closeQuietly (source ));
155
158
done .cancel (false );
156
159
}
157
160
}
You can’t perform that action at this time.
0 commit comments