{"id":4785,"date":"2011-12-21T18:08:36","date_gmt":"2011-12-21T12:38:36","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=4785"},"modified":"2016-12-15T18:13:53","modified_gmt":"2016-12-15T12:43:53","slug":"increasing-the-connection-timeout-between-browser-and-the-tomcat-server","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/increasing-the-connection-timeout-between-browser-and-the-tomcat-server\/","title":{"rendered":"Increasing the connection timeout between browser and the tomcat server"},"content":{"rendered":"<p>There is a case stuck recently in my <a title=\"grails development\" href=\"http:\/\/www.tothenew.com\/grails-application-development\">Grails development project<\/a> where I need to increase the connection timeout between the\u00a0browser and the server, because of the reason before the response get completed server leave the connection which resulted in no response. My colleague <a title=\"Groovy, Grails Practitioner and Agile Enthusiast\" href=\"http:\/\/www.tothenew.com\/blog\/author\/himanshu\/\">Himanshu<\/a> told me to change the setting in server.xml, which help in my purpose.<\/p>\n<p>To increase the connection timeout on tomcat server follow the below\u00a0steps:<\/p>\n<p>1. Open the file server.xml residing in tomcat6\/conf\/.<br \/>\n2. You just need to set variable connectionTimeout in it to Value in Milliseconds.(i.e 1000 milliseconds = 1 second)<\/p>\n<p>For example:<\/p>\n<p>File: server.xml<\/p>\n<p>[java]<br \/>\n[\/java]<\/p>\n<p>I thought it will be useful to share, hope it helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a case stuck recently in my Grails development project where I need to increase the connection timeout between the\u00a0browser and the server, because of the reason before the response get completed server leave the connection which resulted in no response. My colleague Himanshu told me to change the setting in server.xml, which help [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":20},"categories":[2348,1],"tags":[726,263,17],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/4785"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=4785"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/4785\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=4785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=4785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=4785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}