Tcl Library Source Code

View Ticket
Login
2026-11-16
00:06 • Ticket [2853152fff] fix async dns behaviour status still Open with 3 other changes artifact: 5c6bf20e8b user: serhiy.storchaka
2026-11-15
23:36
Fix [2853152fff]: an async dns query closed its socket twice. Clear state(sock) after closing, and skip an empty socket in cleanup. leaf check-in: 822c02055e user: serhiy.storchaka tags: dns-async-double-close
2009-09-07
04:12 • Ticket [2853152fff] fix async dns behaviour status still Open with 4 other changes artifact: cbbe0ddb8c user: mezis
04:12 • Add attachment tcllib-1.11.1.patch to ticket [2853152fff] artifact: b379c3076a user: mezis
2009-09-06
21:12 • New ticket [2853152fff] fix async dns behaviour. artifact: 82069e46c9 user: mezis

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: