2

I'm going to send an array of about 5 millions of records in json format in my spring boot app . is there any way to increase http request timeout in order to prevent from connection timeout?

Pouria Saleh
  • 55
  • 1
  • 10

1 Answers1

6

For the "default container" that would be:

server.tomcat.connection-timeout

property.

In this case (JSON body), also:

server.tomcat.max-swallow-size

sounds important.

Also relevant:

server.tomcat.keep-alive-timeout
// Time to wait for another HTTP request before the connection is closed. When not set the connectionTimeout is used. When set to -1 there will be no timeout.

and maybe:

server.tomcat.max-connections

And:

server.tomcat.max-keep-alive-requests

For other/reactive containers best: search the linked site for "timeout" :)

xerx593
  • 12,237
  • 5
  • 33
  • 64