From 9d29357ffa4cd8d14ef79208d7bcc74f66a91b7d Mon Sep 17 00:00:00 2001 From: heavyrian2012 Date: Wed, 9 Feb 2022 23:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BD=BF=E7=94=A8=E5=86=85?= =?UTF-8?q?=E7=BD=AE=E5=AD=98=E5=82=A8=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=97=B6=E5=86=85=E5=AD=98=E9=87=8A=E6=94=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xiaoleilu/loServer/action/UploadFileAction.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { }