【问题标题】:Spring GWT http request timeoutSpring GWT http 请求超时
【发布时间】:2013-12-18 02:00:16
【问题描述】:

我正在使用 GWT 和 Spring 控制器来管理 http 流量。有些请求可能需要很长时间,但我想在超过给定时间时终止请求。

如何配置 spring 超时。我也使用Apache Tomcat 7.0。我试图在 tomcat 上增加最大线程,但有一段时间 tomcat 工作缓慢,因为请求线程不会死。

【问题讨论】:

标签: java tomcat gwt spring-mvc timeout


【解决方案1】:

让您的异步接口返回 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-11-05
    • 2010-12-12
    • 2014-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多