java - Servlet 3.0 async Timeouts -
is possible extend timeout of servlet 3.0 async servlet. tried in timeout method still completed async request.
what best way of extending timeout such async servlet never completes
tx
its time haven't got reply. here breaking silence :p
asynccontext cntx = request.startasync(request, response); long timeout = default_time_out; if( req.getparametermap().containskey( time_out ) ){ try { timeout = long.parselong( req.getparameter( time_out ) ); } catch (numberformatexception e) { e.printstacktrace(); } } cntx.settimeout( timeout );
Comments
Post a Comment