[英]Spring GWT http request timeout
我正在使用GWT和Spring控制器來管理http流量。 一些請求可能需要很長時間,但是我想在超過給定時間時終止請求。
如何配置帶有超時的spring。 我也使用Apache Tomcat 7.0
。 我試圖增加tomcat上的最大線程,但是隨着時間的推移,tomcat的工作速度很慢,因為請求線程不會消失。
使您的Async接口返回com.google.gwt.http.client.Request實例,並使用計時器取消請求。 不確定您對Spring控制器的含義。
com.google.gwt.http.client.Request
An HTTP request that is waiting for a response. Requests can be queried for their pending status or they can be canceled
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.