简体   繁体   中英

Broken Pipe in httpServer in java

I made an httpServer in java in order to send files to a client. The problem is that after I send the file I've been asked for me server keeps getting null commands in buffereader and throws broken Pipe exception. Is there a way to avoid getting null commands??

没有诸如“ BufferedReader的空命令”之类的东西,而是诸如BufferedReader.readLine()返回null之类的东西,这意味着对等方已关闭连接,您也应该这样做。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM