title: How do you close threads handling TCP requests without closing the TCP connection?
body: <p>I came across the below thread and wanted to implement having threads for requests not client connections but I am unsure how to do so without closing the connection to the client between each TCP transfer. I saw the below but am not sure how to keep the TCP connection between my server and the client alive without keeping a thread alive for that connection.</p>
  <p>The top answer specifies: &quot;And note that thread-per-request does not mean that the framework has to close the TCP connection between HTTP request&quot; I would love to see how that is done.</p>
  <p><a href="https://stackoverflow.com/questions/15217524/what-is-the-difference-between-thread-per-connection-vs-thread-per-request">What is the difference between thread per connection vs thread per request?</a></p>
  <p>@aholbreich</p>