HTTP is sent over TCP so you can safely assume that somewhere in the underlying HttpServletRequest
and HttpServletResponse
there is a SocketInputStream
and a SocketOutputStream
.
If a user closes their browser or the network goes down client-side or server-side, then the server won't be able to receive requests or send responses. If the disconnection happens while the server was in the process of sendError()
, then an IOException will occur while writing to the SocketOutputStream
.
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.