You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ServerRuntime#setTimeout, an exception is thrown (unlike in 2.0-m11or12) and catched, returning false:
java.lang.IllegalStateException: Must not call AsyncContext.setTimeout after the container-initiated dispatch during which ServletRequest.startAsync was called has returned to the container
@Path("resource")
public class Resource {
private static final ArrayBlockingQueue<AsyncResponse> queue = new ArrayBlockingQueue<>(1);
@GET
@Path("suspend")
public void suspend(@Suspended AsyncResponse asyncResponse) {
queue.add(asyncResponse);
}
@POST
@Path("settimeout")
public void setTimeOut(String milis) {
AsyncResponse async = queue.take(0);
async.setTimeout(Long.parseLong(milis), TimeUnit.MILLISECONDS); //FALSE!! }
}
In ServerRuntime#setTimeout, an exception is thrown (unlike in 2.0-m11or12) and catched, returning false:
The following calls are performed:
Affected Versions
[2.0-m13]
The text was updated successfully, but these errors were encountered: