The protocol design has to take care of tracking pending requests and identifying which request the response corresponds to.
协议设计必须考虑跟踪挂起的请求,并确定某个响应对应于哪个请求。
But instead of sending any response to the client as a result of the exception, the request is held in a queue of pending Continuations, and the HTTP connection is kept open.
但是发生该异常之后并没有将响应发送给客户机,请求被放到处于等待状态的Continuation队列中,而HTTP连接仍然保持打开状态。
The second, known as piggyback, doesn't create any connections to the server. Instead, it waits until another DWR service call occurs and piggybacks pending events onto this request's response.
第二种称为piggyback,这种机制并不创建任何到服务器的连接,相反,将一直等待直至发生另一个DWR服务,piggybacks使事件等待该请求的响应。
应用推荐