Spring - server.connection-timeout not working

前端 未结 3 906
猫巷女王i
猫巷女王i 2021-02-12 22:22

In my application.properties file I have...

server.port=8086
server.connection-timeout=15000

I know that the file is being loaded

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-12 22:49

    When I call the endpoint, the request never times out, it just hangs indefinitely.

    server.connection-timeout isn't a request timeout. It is a timeout for idle connections, i.e. those that have already had a request/response pair and on which the server is now awaiting a second request. It is essentially a server-side read timeout.

提交回复
热议问题