diff --git a/broker/src/main/java/com/xiaoleilu/loServer/action/UploadFileAction.java b/broker/src/main/java/com/xiaoleilu/loServer/action/UploadFileAction.java index 9933d8918..9897c3e7b 100755 --- a/broker/src/main/java/com/xiaoleilu/loServer/action/UploadFileAction.java +++ b/broker/src/main/java/com/xiaoleilu/loServer/action/UploadFileAction.java @@ -131,7 +131,8 @@ private void multipartUpload(FullHttpRequest request, String requestId, Response } readHttpDataChunkByChunk(response, decoder, requestId, HttpHeaders.isKeepAlive(request)); - + decoder.destroy(); + if (chunk instanceof LastHttpContent) { }