Commit Graph

205 Commits

Author SHA1 Message Date
Miek Gieben 0aa3021a83 Remove all copyright notices
Use the central COPYRIGHT file.
2014-09-11 20:57:37 +01:00
Miek Gieben 17c7921aa2 Documentation updates 2014-07-31 08:48:26 +00:00
Miek Gieben 0258525f20 Comment tweak 2014-02-14 22:47:53 +00:00
Miek Gieben e81b46d580 Add client.UDPsize
This allows a client to set a default UDPSize with resorting to EDNS0
headers 'n stuff.
2014-02-14 22:14:41 +00:00
Marek Majkowski 2cfad667d7 msg.Copy() makes a deep-copy of the msg object
There was a copy function that did shallow copies of the msg
object. Export it and make it support proper deep copying.
2014-01-10 08:49:45 -08:00
Miek Gieben 52f9a59ac1 Cleanup singleFlight a bit 2014-01-08 10:10:39 +00:00
Miek Gieben f094f37de3 Add shortbuf erorr too
Cleanup the pull request a bit.
2014-01-04 11:17:13 +00:00
Miek Gieben b1f108f79c Simplify client TCP write.
Use the same patch as in the server.
2014-01-04 08:30:08 +00:00
Miek Gieben 451c12da09 typo 2013-12-30 16:46:53 +00:00
Miek Gieben 902ff847c8 Update Exchange documention about retries
Exchange does not fallback to tcp, nor will retry the query. Make
this more clear.
2013-12-27 07:48:30 +00:00
Miek Gieben 37a1ae569b Remove this tidbit of documentation
A nil client is wrong. Just remove the sentence instead of coming
up with something that is technically correct, but doesn't read
nicely.

Closes: #60
2013-11-21 13:27:20 +00:00
Miek Gieben 9b15d749d8 remove newline 2013-11-01 09:51:50 +00:00
Miek Gieben 81fb20e093 Actually make the conn 2013-11-01 09:50:55 +00:00
Miek Gieben 37c7c70289 Use the Dial and DialTimeout function internally 2013-11-01 09:42:55 +00:00
Miek Gieben d789796e53 Add Dial and DialTimeout to the client api.
This is just to mimic net as much as possible.
2013-11-01 09:40:44 +00:00
Miek Gieben 717a8179f5 Use recommendation from RFC5966 and set idle timeout much lower 2013-10-19 22:00:17 +01:00
Miek Gieben ed0b128bd2 Add some groundwork for implementing rfc5966 recommendations 2013-10-18 11:59:19 +00:00
Miek Gieben 4b1cacf2d2 Update the doc a little 2013-10-18 09:14:31 +00:00
Miek Gieben 86186e27e4 Just use Read 2013-10-12 18:47:11 +01:00
Miek Gieben aa44c75b91 Merge net branch 2013-10-12 18:32:53 +01:00
Miek Gieben 68083bc956 Fix merge conflict from net branch 2013-10-12 17:59:46 +01:00
Miek Gieben 7691523300 Re-add ExchangeConn
ExchangeConn is back, but with a warning. Other various improvements.
2013-10-12 12:44:02 +01:00
Miek Gieben 97603e3f62 Readd ExchangeConn 2013-10-12 12:35:09 +01:00
Miek Gieben 77d78f3218 More xfr fixes, does not work yet 2013-10-11 22:34:04 +01:00
Miek Gieben ca3c488ad8 Fix transfer 2013-10-11 16:36:37 +00:00
Miek Gieben b987dc6246 More transfer stuff 2013-10-11 16:18:37 +00:00
Miek Gieben 403baeb73a Rework the transfers stuff 2013-10-02 20:35:13 +01:00
Eric Gavaletz 7f3472cc74 Patching to make compatible with appengine/socket.
The interface conversion from socket.Conn to net.UDPConn fails, but
since you can use a generic Read(b) in place of ReadFromUDP(b) it makes
sense to git rid of the conversion to net.UDPConn.  This change allows
the use of the client library for UDP DNS lookup using the
appengine/socket package's Conn.

For the same reasons the interface conversions for TCP connections were
also removed.
2013-10-02 11:41:26 -04:00
Miek Gieben db3de29edc doc updates 2013-09-29 20:30:04 +01:00
Miek Gieben b02f1b5203 Add Timeouts back in.
Fix the timeouts
2013-09-29 11:46:39 +01:00
Miek Gieben 500a32e64f Update all the tests 2013-09-29 11:26:02 +01:00
Miek Gieben 9a38f97391 Fix timeouts, Tsig and EDNS0 update size 2013-09-29 11:21:18 +01:00
Miek Gieben b97b3340fb Make TSIG work again
Start fixing and using the UDP bufsize option.
2013-09-29 10:22:27 +01:00
Miek Gieben 4bde528be5 Export dns.Conn and make it more like net.Conn
Export lowlevel function and types so that they may be used.
They higher level Exchange function is still there. ExchangeConn
is gone, because it is not needed.
2013-09-28 21:58:08 +01:00
Miek Gieben 22977491c3 Try to use Conn 2013-09-28 20:31:29 +01:00
Miek Gieben 2b6e9122bd Use the better name: SingleInflight 2013-09-06 09:49:07 +00:00
Miek Gieben bb71be0271 Implement outstanding query detection.
Copied from the standard library and adapted to Go DNS.
2013-08-24 02:28:58 +00:00
Miek Gieben d117fda34b Perform query inflight deduplication
Taking a queue from Go tip, I copied over the new code and tweaked
it a bit for use in Go DNS.
2013-08-23 22:56:34 +00:00
Miek Gieben 3457c0428d Some work in outstanding query de-deplication 2013-08-23 20:29:52 +00:00
Miek Gieben 11d592bfa7 client.Retry does not do anything
Remove from the struct as it was not implemented.
2013-06-15 20:35:09 +01:00
Miek Gieben f595bf7a06 Set license on test files 2013-05-12 16:09:52 +02:00
Miek Gieben 19d93e2181 Fix it 2013-01-28 21:49:23 +01:00
Miek Gieben 6dfe504a09 small cleanups 2013-01-28 20:41:17 +01:00
Miek Gieben 73b9284ec7 remove dead code 2013-01-28 20:40:41 +01:00
Miek Gieben 23483f7959 Make it compile 2013-01-28 20:32:36 +01:00
Miek Gieben 0dc922a99b Add a ExchangeConn 2013-01-28 20:30:13 +01:00
Miek Gieben c8f880217f Close the connection
Patch from: Alex Sergeyev
2013-01-28 19:27:24 +01:00
Miek Gieben 4ba5ac6863 Remove client.Attempts
Didn't like it anyway and it made the calling logic a mess. So it is
now removed. Failed queries can be redone, but they should be initiated
from the client, not within the library.
2013-01-11 19:20:49 +01:00
Miek Gieben e66c2a1324 m.Size isnt used 2012-12-14 13:33:24 +01:00
Miek Gieben 3609f3e7a5 gofmt -s 2012-12-09 19:07:31 +01:00