NanoHttpd / nanohttpd

Tiny, easily embeddable HTTP server in Java.
http://nanohttpd.org
BSD 3-Clause "New" or "Revised" License
6.9k stars 1.69k forks source link

If site could not be found,the tempfile will not be deleted,how to resolve this problem? #581

Closed superbigdog closed 4 years ago

superbigdog commented 4 years ago

`五月 13, 2020 2:56:46 下午 fi.iki.elonen.NanoHTTPD$DefaultTempFileManager clear

警告: could not delete file java.lang.Exception: could not delete temporary file: *****\Temp\NanoHTTPD-4713709955631918165 at fi.iki.elonen.NanoHTTPD$DefaultTempFile.delete(NanoHTTPD.java:403) at fi.iki.elonen.NanoHTTPD$DefaultTempFileManager.clear(NanoHTTPD.java:446) at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:984) at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192) at java.lang.Thread.run(Thread.java:745)`

and also this tempfile does not release by JVM.

superbigdog commented 4 years ago

add an error website to finish the request.