Ticket UUID: | 1610330 | |||
Title: | DNS: Asynchronous connect to server | |||
Type: | Patch | Version: | None | |
Submitter: | teopetuk | Created on: | 2006-12-06 18:52:04 | |
Subsystem: | dns | Assigned To: | patthoyts | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2008-01-03 13:50:06 | |
Resolution: | Accepted | Closed By: | patthoyts | |
Closed on: | 2007-08-26 00:44:55 | |||
Description: |
Currently DNS tcllib module uses synchronous connection to DNS server when TCP is using. Sometimes server admins close TCP port 53 and even drop all TCP packets addressed to this port. When Tcl/Tk application connects to such a server it becomes irresponsible until TCP connect timeout reaches. Attached patch makes ::dns::resolve using asynchronous socket connect. | |||
User Comments: |
jenglish added on 2008-01-03 13:50:06:
Logged In: YES user_id=68433 Originator: NO It looks like after this patch, it's necessary to call [dns::wait] after [dns::resolve]. (It's probably always been necessary, just that I never called [dns::wait] before and managed to get away with it. Took a while to find out what was going wrong after upgrading to tcllib 1.10) patthoyts added on 2007-08-26 07:44:55: Logged In: YES user_id=202636 Originator: NO Applied patch - thank you. teopetuk added on 2006-12-07 01:52:07: File Added - 206061: dns.diff |
Attachments:
- dns.diff [download] added by teopetuk on 2006-12-07 01:52:04. [details]