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?
Asked
Active
Viewed 2,865 times
2
-
Are you sure that this actually does time out? – ControlAltDel Sep 06 '22 at 15:12
-
some how because I heard timeout duration is 20-60 seconds – Pouria Saleh Sep 07 '22 at 04:29
1 Answers
6
For the "default container" that would be:
server.tomcat.connection-timeout
spring-boot 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