Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在码头 servlet 容器(码头 6.xy 版)中有一个 javax HttpServlet,我想在响应此 servlet 处理的一些请求后关闭底层连接。
实现这一目标的最简单方法是什么?我查看了传递给的HttpRequest和HttpResponse对象HttpServlet#doPost(…),但它们似乎不提供对底层 TCP 连接的访问。
HttpRequest
HttpResponse
HttpServlet#doPost(…)