Vipul Sharma
Vipul Sharma

Reputation: 798

tomcat - webservice times out after 60 seconds, increase connection timeout

I have created some web-services in my java application which is hosted on tomcat server. Now when that web-service is called, either from the same server or a cross domain call, it times out after 60 seconds. I want to increase this timeout to 90 seconds. I tried setting this connectionTimeout -

<Connector port="5504" protocol="AJP/1.3" connectionTimeout="90000" 
redirectPort="8443" tomcatAuthentication="false" maxThreads="999" />

but it doesn't work. Please let me know for any further details.

Upvotes: 1

Views: 3742

Answers (1)

nakul shukla
nakul shukla

Reputation: 178

It looks like you are making this change in tomcat connector, which uses AJP protocol.

Instead, you should make this change in correct connector port which uses HTTP protocol.

Please refer to below setting -

< Connector port="8080" protocol="HTTP/1.1" connectionTimeout="90000" redirectPort="8443" />

Upvotes: 1

Related Questions