Servlet 3.1 api
Refactoring for determining the pause time on select
Close connection if all response is read.