title: Tomcat: Terminating threads spawned inside request-thread when HTTP connection is closed
body: <p>In Tomcat 6/7:</p>
  
  <p>1) Say in the request-thread we perform some tasks; calling other webservices,DB..etc. When the client closes the HTTP connection , does the request-thread get terminated/killed stopping any running tasks ? If not , how to terminate ?</p>
  
  <p>2) What If, in the request-thread we do some parallel tasks spawning some new threads (using ExecutorService with a fixed pool size) .In the case of HTTP connection close , how to terminate/kill these threads spawned inside the request-thread ?</p>