Skip to content

Commit 32adf77

Browse files
committed
Corrupt multipart should not hang SynchronossPartHttpMessageReader
This commit notifies the Synchronoss listener that the buffer stream has ended. See gh-23768
1 parent 1301c7e commit 32adf77

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spring-web/src/main/java/org/springframework/http/codec/multipart/SynchronossPartHttpMessageReader.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,13 @@ protected void hookOnError(Throwable ex) {
262262
}
263263
}
264264

265+
@Override
266+
protected void hookOnComplete() {
267+
if (this.listener != null) {
268+
this.listener.onAllPartsFinished();
269+
}
270+
}
271+
265272
@Override
266273
protected void hookFinally(SignalType type) {
267274
try {

0 commit comments

Comments
 (0)