Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 570
    • Issues 570
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 100
    • Merge requests 100
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • BINDBIND
  • Merge requests
  • !6706

Don't destroy tlssocket until closed

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Ondřej Surý requested to merge 3509-dont-destroy-tlssocket-until-closed into main Aug 29, 2022
  • Overview 6
  • Commits 4
  • Pipelines 4
  • Changes 2

If the isc___nmsocket_prep_destroy() is called on the not-yet-closed socket, the code calls respective isc__nm_*_close() function and exit. When the socket is already closed, the isc___nmsocket_prep_destroy() also calls nmsocket_maybe_destroy() that finally destroys the socket.

Fix the TLS transport which would be the only one breaking the paradigm, calling the isc__nm_tls_close() and then immediately calling nmsocket_maybe_destroy() on the same socket. Because the tlsclose is asynchronous, this might lead into wrong order of operations.

Closes #3509

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 3509-dont-destroy-tlssocket-until-closed