4

I have a client machine running a java program that opens a http connection to another server that is running a tomcat servlet container. This servlet will build a pdf file and The HTTP response will be a stream of bytes which make up the pdf file. In between the two machines can be any number of routers or firewalls.

Now let's say the server is taking very long to build the pdf file, is there a limit on how long the http connection will stay open? I know this answers will very likely depend on the configuration of the server, the tomcat, the firewall, the network... But I'm looking for general information. For example, what are default or commonly used values? How are they configured?

If there is a duration limit, what are the main settings to look for/configure if we want to increase the time until the http connection times out?

EDIT: Please note this is a server connecting to another server using java programs and the http protocol. Browsers have nothing to do with this, so I'm not looking for timeout settings for browsers.

user1884155
  • 3,616
  • 4
  • 55
  • 108
  • possible duplicate of [Where can I find the default timeout settings for all browsers?](http://stackoverflow.com/questions/1342310/where-can-i-find-the-default-timeout-settings-for-all-browsers) – Joe Apr 15 '15 at 12:38
  • @Joe I don't see how browsers are relevant to my situation. I explicitly stated I'm not using any browsers in my connection. – user1884155 Apr 15 '15 at 12:52
  • In general, there is no hard limit. A TCP connection where you control both ends can stay open indefinitely. In practice, browser timeouts give a good indication of what network infrastructure will treat as "default or commonly used values". – Joe Apr 15 '15 at 12:56

0 Answers0