eugenp / tutorials

Just Announced - "Learn Spring Security OAuth":

Home Page:http://bit.ly/github-lsso

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect value for HttpClient keep-alive timeout since JDK 20

marcus-bcl opened this issue · comments

Article and Module Links
https://www.baeldung.com/java-httpclient-connection-management#connection-keepalive-timeouts

Describe the Issue
The article mentions that the default JDK HttpClient keep-alive timeout is 1200 (20 minutes). However, from JDK 20 onwards, the default was reduced to 30 seconds.

Additional Context

Hey @marcus-bcl,

You're right and there is already a note about it in the same section: Since 20 minutes is a long time in modern architecture, JDK20, build 26 reduces the default to 30 seconds.

Cheers,
Team

Apologies, I didn't spot that line! Thanks.

Nice catch and fix applied. Thanks, @marcus-bcl .