Skip to content

Commit 190a5f1

Browse files
发布2.3.31
1 parent b0d984e commit 190a5f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/github/netty/protocol/servlet/ServletInputStreamWrapper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,9 @@ void abort() {
410410
// 标记终止
411411
this.abort = true;
412412
// 如果数据没收完,记录终止线程的堆栈抛给前端
413-
this.abortException = isReceived() ? null : new IOException("Unexpected EOF read on the socket");
413+
if (!isReceived()) {
414+
this.abortException = new IOException("Unexpected EOF read on the socket");
415+
}
414416
close();
415417
// 释放等待读body的线程
416418
conditionSignalAll();

0 commit comments

Comments
 (0)