Re: Problems with DNS package in TCLLIB and the TCLUDP package
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Problems with DNS package in TCLLIB and the TCLUDP package

From: Andrew Falanga <not_real@hp.com>
Date: Thu Sep 08 2005 - 20:56:23 CEST

Pat Thoyts wrote:
>
> Try running an event loop - add
> after 2000 {set forever 1} ; vwait forever
> if this is a tclsh script.

Essentially, this was the fix. With the help of some fellow engineers
at work, we isolated it to being that (most likely) the event handler,
the fileevent stuff, was being registered after the response had been
received and placed on the socket by the kernel. I was getting my data
(from the udp transaction) when doing a dns query using tcp because of
the overhead involved with tcp transactions. My fix looks something
like this:

# start script and source libs, load packages tcllib and tcludp

set u_tok [dns::resolve hp.com]

vwait $u_tok

Thanks.

---------------------------------------------
Andrew R. Falanga (a non-HP employee)
Hewlett-Packard Company
11311 Chinden Blvd.
Boise, Idaho
---------------------------------------------
Please note: The e-mail address is purposely
mangled. I do not wish my account at HP to
become a spam haven.
Received on Thu Sep 29 14:36:05 2005