This is a spin-off from MDEV-4379. Quoting from there
If a mariadb is configured to bind to a hostname, it should be possible for it to bind to both the ipv4 and ipv6 addresses defined for that hostname if the host is set up that way. This is the standard behavior with server software (openldap, postfix, apache, etc). Most also include options to force binding only to a specific ip protocol if desired. This is helpful for dual stack systems where it may be desired to have a server bind to both the ipv4 and ipv6 addresses for serving clients.
Attachments
Issue Links
causes
MDEV-26194bind_address = :: no longer listens on ipv4
I request a change around WaitForMultipleObjects(), in the very unlikely case wait_events.size() exceeds MAXIMUM_WAIT_OBJECTS=64. This would require at least 40 IP addresses for a name, and I'm not sure how it is possible, but the check must be there. Looks OK otherwise.
Vladislav Vaintroub
added a comment - - edited I request a change around WaitForMultipleObjects(), in the very unlikely case wait_events.size() exceeds MAXIMUM_WAIT_OBJECTS=64. This would require at least 40 IP addresses for a name, and I'm not sure how it is possible, but the check must be there. Looks OK otherwise.
Daniel Black
added a comment - All merged. Feels good to finally close of 6.5 year old bugs.
Thanks rinat.ibragimov for the code. It is helping my MDEV-5536 significantly.
People
Daniel Black
Sergei Golubchik
Votes:
6Vote for this issue
Watchers:
9Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":933.3999996185303,"ttfb":261.7999997138977,"pageVisibility":"visible","entityId":42708,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"3c578c7f-e0b9-489d-adb0-c3498413b096","navigationType":0,"readyForUser":1009.3999996185303,"redirectCount":0,"resourceLoadedEnd":881.0999999046326,"resourceLoadedStart":270.2999997138977,"resourceTiming":[{"duration":112.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":270.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":270.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":382.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":113.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":270.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":270.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":383.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":173.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":270.7999997138977,"connectEnd":270.7999997138977,"connectStart":270.7999997138977,"domainLookupEnd":270.7999997138977,"domainLookupStart":270.7999997138977,"fetchStart":270.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":270.7999997138977,"responseEnd":444.69999980926514,"responseStart":444.69999980926514,"secureConnectionStart":270.7999997138977},{"duration":258.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":270.8999996185303,"connectEnd":270.8999996185303,"connectStart":270.8999996185303,"domainLookupEnd":270.8999996185303,"domainLookupStart":270.8999996185303,"fetchStart":270.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":270.8999996185303,"responseEnd":529.0999999046326,"responseStart":529.0999999046326,"secureConnectionStart":270.8999996185303},{"duration":261.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":271.19999980926514,"connectEnd":271.19999980926514,"connectStart":271.19999980926514,"domainLookupEnd":271.19999980926514,"domainLookupStart":271.19999980926514,"fetchStart":271.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":271.19999980926514,"responseEnd":533,"responseStart":533,"secureConnectionStart":271.19999980926514},{"duration":262.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":271.3999996185303,"connectEnd":271.3999996185303,"connectStart":271.3999996185303,"domainLookupEnd":271.3999996185303,"domainLookupStart":271.3999996185303,"fetchStart":271.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":271.3999996185303,"responseEnd":533.5999999046326,"responseStart":533.5999999046326,"secureConnectionStart":271.3999996185303},{"duration":262.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":271.59999990463257,"connectEnd":271.59999990463257,"connectStart":271.59999990463257,"domainLookupEnd":271.59999990463257,"domainLookupStart":271.59999990463257,"fetchStart":271.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":271.59999990463257,"responseEnd":534,"responseStart":534,"secureConnectionStart":271.59999990463257},{"duration":317.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":271.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":271.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":589.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":262.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":272,"connectEnd":272,"connectStart":272,"domainLookupEnd":272,"domainLookupStart":272,"fetchStart":272,"redirectEnd":0,"redirectStart":0,"requestStart":272,"responseEnd":534.3999996185303,"responseStart":534.3999996185303,"secureConnectionStart":272},{"duration":315.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":274,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":589.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":260.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":274.09999990463257,"connectEnd":274.09999990463257,"connectStart":274.09999990463257,"domainLookupEnd":274.09999990463257,"domainLookupStart":274.09999990463257,"fetchStart":274.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":274.09999990463257,"responseEnd":535,"responseStart":535,"secureConnectionStart":274.09999990463257},{"duration":532.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":275.3999996185303,"connectEnd":275.3999996185303,"connectStart":275.3999996185303,"domainLookupEnd":275.3999996185303,"domainLookupStart":275.3999996185303,"fetchStart":275.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":275.3999996185303,"responseEnd":808.1999998092651,"responseStart":808.1999998092651,"secureConnectionStart":275.3999996185303},{"duration":528.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":280.5,"connectEnd":280.5,"connectStart":280.5,"domainLookupEnd":280.5,"domainLookupStart":280.5,"fetchStart":280.5,"redirectEnd":0,"redirectStart":0,"requestStart":280.5,"responseEnd":808.7999997138977,"responseStart":808.7999997138977,"secureConnectionStart":280.5},{"duration":54.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":601.2999997138977,"connectEnd":601.2999997138977,"connectStart":601.2999997138977,"domainLookupEnd":601.2999997138977,"domainLookupStart":601.2999997138977,"fetchStart":601.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":601.2999997138977,"responseEnd":655.6999998092651,"responseStart":655.6999998092651,"secureConnectionStart":601.2999997138977},{"duration":217.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":663.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":663.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":881.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":103,"responseStart":262,"responseEnd":266,"domLoading":266,"domInteractive":1069,"domContentLoadedEventStart":1069,"domContentLoadedEventEnd":1128,"domComplete":1391,"loadEventStart":1392,"loadEventEnd":1392,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1042.8999996185303},{"name":"bigPipe.sidebar-id.end","time":1043.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.start","time":1043.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1045.7999997138977},{"name":"activityTabFullyLoaded","time":1145.5999999046326}],"measures":[],"correlationId":"3fd43ff0114271","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The lack of support for multiple sockets is what breaks dual-stack support on OpenBSD.