Title: Too long timeout resolution of SimpleResolver · Issue #273 · dnsjava/dnsjava · GitHub
Open Graph Title: Too long timeout resolution of SimpleResolver · Issue #273 · dnsjava/dnsjava
X Title: Too long timeout resolution of SimpleResolver · Issue #273 · dnsjava/dnsjava
Description: Context We are using dnsjava library in our high-performance production system that requires us to handle request within less than 1000ms. From DNS library perspective, we are using single ExtendedResolver instance with multiple(8 in pro...
Open Graph Description: Context We are using dnsjava library in our high-performance production system that requires us to handle request within less than 1000ms. From DNS library perspective, we are using single Extended...
X Description: Context We are using dnsjava library in our high-performance production system that requires us to handle request within less than 1000ms. From DNS library perspective, we are using single Extended...
Opengraph URL: https://github.com/dnsjava/dnsjava/issues/273
X: @github
Domain: redirect.github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Too long timeout resolution of SimpleResolver","articleBody":"**_Context_**\r\n\r\nWe are using dnsjava library in our high-performance production system that requires us to handle request within less than 1000ms.\r\nFrom DNS library perspective, we are using single ExtendedResolver instance with multiple(8 in production environment, currently) SimpleResolvers to resolve DNS names using UDP transport.\r\n\r\nCurrently, we are still using _v2.1.8_ where SimpleResolver timeout resolution is 100ms. \r\nExtendedResolver is initiated with timeout of 100ms meaning, given production configuration, in worst-case scenario where only last DNS server address is up, it takes 700ms to complete the name resolution.\r\n\r\n_**Problem**_\r\nRecently, we tried to upgrade the library to the newest version(_v3.5.2_). Initially, we came across unexpected behaviour where each attempt to use inactive address would take 1000ms before using the next one, instead of 100ms(as in previous version). We then adapted the implementation to new timeout configuration(initiating set of SimpleResolvers with configured timeout of 100ms for each of them and leaving ExtendedResolver's timeout with default value of 10s, but we were still facing unexpected delay of 1s between every failed request.\r\n\r\nTrying to find an explanation, we found this commit: https://github.com/dnsjava/dnsjava/commit/ecff2a794a0cb5115a290084cbd2d3eaab18c28a#diff-e7c3e7095c50ede819690052d4f33ba68bc56a1885243c544f4d857a66bc5a65R57\r\n\r\n_**Question**_\r\nCould you, please, provide the reason for that change? Is there a way to make it configurable atleast? Unfortunately, in our case it means the new version of the library is unusable.\r\n\r\nBest regards,\r\nRafal","author":{"url":"https://github.com/rafaltelaczynski","@type":"Person","name":"rafaltelaczynski"},"datePublished":"2023-01-03T10:06:16Z","url":"https://github.com/dnsjava/dnsjava/issues/273"}
| 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:9c91dc10-49c5-c54d-a519-a53aac964fc7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B07C:156E57:82DB8:B0EE1:6B0603FD |
| html-safe-nonce | 77f13771ae05f723eb8b5bf8789e527252208f6c464f7d813f0c6cd00db342d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDdDOjE1NkU1Nzo4MkRCODpCMEVFMTo2QjA2MDNGRCIsInZpc2l0b3JfaWQiOiI2NTk0MTEzMTkwMjc0NDAxMjc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f8c80767dcfbf4611020990da812bd32475a79aa809e730e864c398ccf34040e |
| hovercard-subject-tag | issue:1517172475 |
| 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/273/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab2fb040906a85f71f850ee76520dcc4320d45b6eaec97faba865ef05c1d3251/dnsjava/dnsjava/issues/273 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab2fb040906a85f71f850ee76520dcc4320d45b6eaec97faba865ef05c1d3251/dnsjava/dnsjava/issues/273 |
| og:image:alt | Context We are using dnsjava library in our high-performance production system that requires us to handle request within less than 1000ms. From DNS library perspective, we are using single Extended... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rafaltelaczynski |
| 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