package Ġcom . foo . rest . examples . spring . openapi . v 3 . tomcat Ċ Ċ import Ġorg . apache . catalina . connector . Connector Ċ import Ġorg . apache . co y ote . http 1 1 . Abstract Http 1 1 Protocol Ċ import Ġorg . springframework . boot . web . embedded . tomcat . Tom cat Connector Customizer Ċ import Ġorg . springframework . boot . web . embedded . tomcat . Tom cat Servlet WebServer Factory Ċ import Ġorg . springframework . boot . web . server . WebServer Factory Customizer Ċ import Ġorg . springframework . context . annotation . Configuration Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġar cur i 8 2 Ġon Ġ 0 3 - Mar - 2 0 . Ċ Ġ*/ Ċ @ Configuration Ċ open Ġclass ĠTom cat Customizer Ġ: ĠWeb Server Factory Customizer < Tom cat Servlet WebServer Factory > Ġ{ ĊĠĠĠ Ġ/* ĊĠĠĠĠĠĠĠ ĠBased Ġon : ĊĠĠĠĠĠĠĠ Ġhttps :// stackoverflow . com / questions / 3 1 4 6 1 4 4 4 / how - do - i - configure - this - property - with - spring - boot - and - an - embedded - tomcat / 3 1 4 6 1 8 8 2 ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġoverride Ġfun Ġcustomize ( factory : ĠTom cat Servlet WebServer Factory ) Ġ{ ĊĠĠĠĠĠĠĠ Ġfactory . add Connector Custom izers ( Tom cat Connector Customizer Ġ{ Ġconnector : ĠConnector Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġprotocol Ġ= Ġconnector . protocol Handler Ġas ĠAbstract Http 1 1 Protocol < *> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġprotocol . setMax KeepAlive Requests (- 1 ) ĊĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠ Ġ} Ċ }