1aa83b830f
This solves the looping problem. Since the TCP connection wouldn't necessarily close, we couldn't count on a 0-length recv, and the connection was timing out. Changed it so send_tcp can take a block, in which we do parsing. AXFR responses are sandwiched between SOA answers, so when the second one is reached, the transfer is done. This is also cleaner for existing code that uses send_tcp, since if no block is passed, it just returns the first response and tears down the connection, just like it used to. |
||
---|---|---|
.. | ||
dns | ||
ssh | ||
dns.rb | ||
ssh.rb | ||
ssh.rb.ut.rb |