Skip to content

Discontinue use of SocketSupport to set extended socket options#542

Merged
rschmitt merged 1 commit intoapache:masterfrom
rschmitt:ext
Aug 7, 2025
Merged

Discontinue use of SocketSupport to set extended socket options#542
rschmitt merged 1 commit intoapache:masterfrom
rschmitt:ext

Conversation

@rschmitt
Copy link
Copy Markdown
Contributor

@rschmitt rschmitt commented Aug 6, 2025

The extended socket options related to TCP Keep-Alive were backported to Java 8 over five years ago. We can simply enable them directly without having to use reflection.

Related: apache/httpcomponents-client#701

Comment thread httpcore5/src/main/java/org/apache/hc/core5/io/SocketSupport.java Outdated
Comment thread httpcore5/src/test/java/org/apache/hc/core5/io/TestSocketSupport.java Outdated
The extended socket options related to TCP Keep-Alive were backported to
Java 8 over five years ago. We can simply enable them directly without
having to use reflection.
@rschmitt rschmitt merged commit 49f1827 into apache:master Aug 7, 2025
10 checks passed
@rschmitt rschmitt deleted the ext branch August 7, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants