简体   繁体   中英

Spring GWT http request timeout

I'm using GWT and Spring controller to manage http traffic. Some of the requests may take long time, but I want to kill requests when exceeds the given time.

How can I configure spring with timeout. I use also Apache Tomcat 7.0 . I tried to insrease max thread on tomcat but with a time tomcat works slowly because request threads not die.

Make your Async interface return com.google.gwt.http.client.Request instance and use a timer to cancel the request. Not sure what you mean about the Spring controller.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM