Title: Allow configuration of TCP keepalive for NIO TCP connections · Issue #420 · dnsjava/dnsjava · GitHub
Open Graph Title: Allow configuration of TCP keepalive for NIO TCP connections · Issue #420 · dnsjava/dnsjava
X Title: Allow configuration of TCP keepalive for NIO TCP connections · Issue #420 · dnsjava/dnsjava
Description: When dnsjava receives a truncated UDP response, it retries the query over TCP using NioTcpClient. That created TCP connection may remain open for reuse, but currently there is no way to configure TCP keepalive. A firewall or other networ...
Open Graph Description: When dnsjava receives a truncated UDP response, it retries the query over TCP using NioTcpClient. That created TCP connection may remain open for reuse, but currently there is no way to configure T...
X Description: When dnsjava receives a truncated UDP response, it retries the query over TCP using NioTcpClient. That created TCP connection may remain open for reuse, but currently there is no way to configure T...
Opengraph URL: https://github.com/dnsjava/dnsjava/issues/420
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow configuration of TCP keepalive for NIO TCP connections","articleBody":"When dnsjava receives a truncated UDP response, it retries the query over TCP using NioTcpClient. That created TCP connection may remain open for reuse, but currently there is no way to configure TCP keepalive. A firewall or other network device may silently drop an idle connection, causing later queries that reuse it to fail.\nEnabling SO_KEEPALIVE on NIO TCP connections and allowing callers to configure the keepalive timing and probe count would prevent that. Suggested system property names and defaults:\n\n|Property | Default | Socket option\n|-- | -- | --\n|dnsjava.tcp.keepalive | true | SO_KEEPALIVE\n|dnsjava.tcp.keepidle | 900 seconds | TCP_KEEPIDLE\n|dnsjava.tcp.keepinterval | 75 seconds | TCP_KEEPINTERVAL\n|dnsjava.tcp.keepcount | 9 probes | TCP_KEEPCOUNT\n","author":{"url":"https://github.com/MarioGoupil","@type":"Person","name":"MarioGoupil"},"datePublished":"2026-10-03T18:25:25Z","url":"https://github.com/dnsjava/dnsjava/issues/420"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b3dd3083-3d1d-79c0-4e3f-fb397bdd7072 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8504:3A599A:C764C:107CE1:6B06074D |
| html-safe-nonce | e27318d705c9c13eaf7cfd85da703c429bbdd90582b70b79dd3967c7c9509e3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTA0OjNBNTk5QTpDNzY0QzoxMDdDRTE6NkIwNjA3NEQiLCJ2aXNpdG9yX2lkIjoiNTc0Njc3OTUyMzYwNTk4OTE5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2cae34df8c62df6fb97e6cc36e07a6ae031f62400f0d970e65a450765cdfafb0 |
| hovercard-subject-tag | issue:5692348953 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dnsjava/dnsjava/420/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e71e3b5f62cc2222f2aae758f65e69d2d7a1d75968e4b96815fb0da2b9e9c1c/dnsjava/dnsjava/issues/420 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e71e3b5f62cc2222f2aae758f65e69d2d7a1d75968e4b96815fb0da2b9e9c1c/dnsjava/dnsjava/issues/420 |
| og:image:alt | When dnsjava receives a truncated UDP response, it retries the query over TCP using NioTcpClient. That created TCP connection may remain open for reuse, but currently there is no way to configure T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MarioGoupil |
| hostname | github.com |
| expected-hostname | github.com |
| None | 47127d2f2009e000f3401193f8b4163109ac669adad0804de1ee0e6333ca7b9e |
| turbo-cache-control | no-preview |
| go-import | github.com/dnsjava/dnsjava git https://github.com/dnsjava/dnsjava.git |
| octolytics-dimension-user_id | 6755615 |
| octolytics-dimension-user_login | dnsjava |
| octolytics-dimension-repository_id | 17084567 |
| octolytics-dimension-repository_nwo | dnsjava/dnsjava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17084567 |
| octolytics-dimension-repository_network_root_nwo | dnsjava/dnsjava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0760ea46a027ba5099cdef7abd54f27865eb4f44 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width