When a user requests some resource from server, server will create a new
thread and will call service() method of the requested
servlet. Now, suppose the servlet is in middle of doing a DB transaction etc. and user clicks the stop button. Now what will happen on server side? Because now we can't send response to client so will container terminate this thread or something else? How a container is supposed to handle this situation?