9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] new dial, cs and dns for ipv6
@ 2011-03-17 19:42 geoff at plan9.bell-labs.com
  2011-03-17 20:04 ` erik quanstrom
  2011-03-17 20:23 ` cinap_lenrek at gmx.de
  0 siblings, 2 replies; 10+ messages in thread
From: geoff at plan9.bell-labs.com @ 2011-03-17 19:42 UTC (permalink / raw)


Now that the world at large is waking up to IPv6, one problem I kept
tripping over is that dial(2) tries addresses serially, and since it's
not unusual for IPv6 connectivity to be broken, and since DNS servers
randomise the order of IP addresses they return, it's quite possible
to hang for a long time trying to connect to a v6 (or, with
multi-homing, v4) address before getting to one that works.

I've just pushed out to sources a new dial implementation and changes
to ndb/cs and ndb/dns to cope better in this new world, including
updated manual pages.

The new dial dials multiple addresses concurrently and uses the first
connection that completes.  The dial change will cause dozens of
programs to be recompiled on sources later today.

ndb/cs will now return IPv6 addresses obtained from DNS AAAA records
when queried for IP addresses.  This behaviour can be disabled by
invoking cs with -4 and can be toggled by writing "ipv6" to /net/cs.

ndb/dns now has shorter time-outs and fewer UDP retransmissions, and
uses millisecond (rather than second) resolution internally for most
time-outs.  If this is a problem for you, you may want to adjust the
enum constants at the top of ndb/dnresolve.c, but beware that they can
multiply connection delays.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-03-18 23:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-17 19:42 [9fans] new dial, cs and dns for ipv6 geoff at plan9.bell-labs.com
2011-03-17 20:04 ` erik quanstrom
2011-03-17 20:23 ` cinap_lenrek at gmx.de
2011-03-17 20:57   ` cinap_lenrek at gmx.de
2011-03-17 20:59   ` geoff at plan9.bell-labs.com
2011-03-17 21:12     ` cinap_lenrek at gmx.de
2011-03-17 21:38     ` erik quanstrom
2011-03-17 22:11       ` cinap_lenrek at gmx.de
2011-03-18 23:20         ` cinap_lenrek at gmx.de
2011-03-18 23:39           ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).