Home > front end >  increase HTTP request connection timeout in spring boot
increase HTTP request connection timeout in spring boot

Time:09-07

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?

CodePudding user response:

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" :)

CodePudding user response:

Too large data.It is more appropriate to transfer data in batches.

  • Related