Corrupt multipart should not hang SynchronossPartHttpMessageReader

This commit notifies the Synchronoss listener that the buffer stream
has ended.

Closes gh-23768
This commit is contained in:
Arjen Poutsma
2019-11-07 09:09:42 +01:00
parent 5d2fc2fc32
commit bf36f49dc5
3 changed files with 32 additions and 0 deletions

View File

@@ -261,6 +261,13 @@ public class SynchronossPartHttpMessageReader extends LoggingCodecSupport implem
}
}
@Override
protected void hookOnComplete() {
if (this.listener != null) {
this.listener.onAllPartsFinished();
}
}
@Override
protected void hookFinally(SignalType type) {
try {