Skip to content

Commit 9a7af9e

Browse files
authored
Merge pull request jianjianai#14 from jianjianai/dev
NanoHttp有bug,我帮他改改。
2 parents 73a76c3 + 1af5f21 commit 9a7af9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/fi/iki/elonen/NanoHTTPD.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public void run() {
155155
// than the expected SocketException OR a
156156
// SocketTimeoutException, print the
157157
// stacktrace
158-
if (!(e instanceof SocketException && "NanoHttpd Shutdown".equals(e.getMessage())) && !(e instanceof SocketTimeoutException)) {
158+
if (!(e instanceof SocketException && ("NanoHttpd Shutdown".equals(e.getMessage()) || "Broken pipe".equals(e.getMessage()))) && !(e instanceof SocketTimeoutException)) {
159159
NanoHTTPD.LOG.log(Level.SEVERE, "Communication with the client broken, or an bug in the handler code", e);
160160
}
161161
} finally {

0 commit comments

Comments
 (0)