| Ticket UUID: | 2853152 | |||
| Title: | fix async dns behaviour | |||
| Type: | Patch | Version: | None | |
| Submitter: | mezis | Created on: | 2009-09-06 21:12:14 | |
| Subsystem: | dns | Assigned To: | patthoyts | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Open | Last Modified: | 2026-11-16 00:06:15 | |
| Resolution: | None | Closed By: | ||
| Closed on: | ||||
| Description: |
In some cases, dns::resolve may end up closing its socket "twice". Since the socket name might have been re-allocated in the meantime, thi causes someone elese's socket to get closed. This patch fixes this by setting the socket name to "nil" just after closing it. | |||
| User Comments: |
serhiy.storchaka added on 2026-11-16 00:06:15:
The 2009 patch was never applied, and the double close is still there. Proposed fix in branch dns-async-double-close, following the patch: clear state(sock) after closing, and skip an empty socket in cleanup. Test dns-5.1. mezis added on 2009-09-07 04:12:17: File Added - 341984: tcllib-1.11.1.patch | |||
Attachments:
- tcllib-1.11.1.patch [download] added by mezis on 2009-09-07 04:12:17. [details]
