Miek Gieben
3457c0428d
Some work in outstanding query de-deplication
2013-08-23 20:29:52 +00:00
Miek Gieben
db41985b91
copy the optimization from go tip into here
2013-08-23 18:41:35 +00:00
Miek Gieben
2980ecf999
typo in comment
...
# Last 5 commit messages
# ----------------------
# 10ad5a4
Merge branch 'master' of github.com:miekg/dns [Miek Gieben]
# ac0703b
Handle MixCase queries again. [Miek Gieben]
# dbef97a
Add MixCase query test [Miek Gieben]
# 7ef3106
Add panics to make older Go versions happy [Miek Gieben]
# 980f5e9
Merge pull request #51 from r4um/master [Miek Gieben]
2013-08-21 21:52:39 +00:00
Miek Gieben
10ad5a45e2
Merge branch 'master' of github.com:miekg/dns
2013-07-25 09:30:42 +00:00
Miek Gieben
ac0703bbe6
Handle MixCase queries again.
...
Thanks Ask for reporting.
2013-07-25 08:32:10 +01:00
Miek Gieben
dbef97abad
Add MixCase query test
...
As reported by Ask, these aren't correctly handled :(
2013-07-25 07:55:59 +01:00
Miek Gieben
7ef3106262
Add panics to make older Go versions happy
2013-07-12 14:27:16 +00:00
Miek Gieben
980f5e9d63
Merge pull request #51 from r4um/master
...
Do not fail AXFR if first anwser is just SOA
2013-07-11 02:49:30 -07:00
Pranay Kanwar
467e5fce1b
Do not fail AXFR if first anwser is just SOA
2013-07-11 12:12:32 +05:30
Miek Gieben
91a457e0d8
Merge pull request #50 from fcambus/master
...
Adding some projects to the list of library users
2013-07-04 11:13:18 -07:00
Frederic Cambus
a62e4d4cba
Adding some projects to the list of library users
2013-07-04 19:09:37 +02:00
Miek Gieben
09d7d3e79d
Some TODO updates
2013-06-29 09:50:43 +01:00
Miek Gieben
555318a03a
Merge branch 'compress'
2013-06-29 09:49:12 +01:00
Miek Gieben
73e03fe818
Another txt variant to test for
2013-06-29 08:46:34 +01:00
Miek Gieben
f269acba7e
Add compression serving benchmark-test
2013-06-27 20:29:10 +01:00
Miek Gieben
9fa50d8ac2
Fix the nsec/3 length calculation
...
This overshoots, 'cause it only counts the windows, not the
actual bitmap sizes in the window. But it keeps the code
simple and fast.
2013-06-27 20:19:02 +01:00
Miek Gieben
3f40afaafd
Print the actual error
2013-06-27 20:01:32 +01:00
Miek Gieben
55aa4480c7
Fix some typos
2013-06-27 19:46:26 +01:00
Miek Gieben
b651c7ea1f
Fix TXT lenght again, but now it looks more right
2013-06-27 14:43:57 +00:00
Miek Gieben
53789814d0
Add benchmarking tests - Len() is ~4 times after then packing and getting a length from that
2013-06-27 09:47:53 +00:00
Miek Gieben
61919d8713
Add all the compressible types to Len()
...
Len() now performs its duty, question is, *is* this now faster/better
than just packing a Msg, checkings its lenght and discarding the buffer.
2013-06-27 09:07:01 +00:00
Miek Gieben
245be76edf
Revert "Fix length computation for TXT"
...
This reverts commit 795a69a6ec
.
2013-06-26 22:22:31 +01:00
Miek Gieben
1ad76fe65b
Added packLen
...
packLen() returns the length of an uncompressed packet buffer, this
is used when packing a packet. This is needed for compression. When
compression is used, we first create the full packet and *then*
compress it. If we use Len() which accounts for compression, we can
get buffer overruns, when packing the (then still uncompressed) packet.
2013-06-26 22:18:09 +01:00
Ray Bejjani
d83e816f30
Changed TestLenCompress to use error inducing name
...
Long labels cause a packing out of bounds error. It is thrown at msg.go:268 in
the PackDomain function. It happens with messages of any construction (no RR
data, some RR data etc.).
2013-06-26 20:38:55 +01:00
Miek Gieben
57fae415e0
Get the testcases going
2013-06-26 20:34:40 +01:00
Miek Gieben
b9f82b0a36
Cherry-pick specific hunks
2013-06-26 20:33:01 +01:00
Ray Bejjani
9d2d8b36eb
SplitDomainName handles non-FQDN labels correctly, doesn't return '.' in parts.
...
SplitDomainName would always include the '.' after each label segment. This was
inconsistent with the "." case (were it returned nil) and didn't seem too useful
since it required more processing to remove the '.' (like when building a
compression dictionary in Msg.Len() or Msg.Pack()). It also had issues with the
last segment, not including it in the split. It now returns all segments,
including the last, irrespective of the label being fully qualified.
A test has also been added to ensure no regressions.
2013-06-25 10:53:30 -07:00
Miek Gieben
070a02c253
Merge branch 'master' of github.com:miekg/dns
2013-06-24 19:05:51 +01:00
Miek Gieben
a04fe67042
Should say udp
2013-06-24 08:44:09 +00:00
Miek Gieben
45640bc8bd
Slightly better documentation
2013-06-24 08:14:30 +00:00
Miek Gieben
83a2c0b789
small tweaks
2013-06-23 21:41:49 +01:00
Miek Gieben
9629b0ce8b
update todo
2013-06-23 21:39:58 +01:00
Miek Gieben
04067bbf85
Fix doc and todo
2013-06-23 21:39:14 +01:00
Miek Gieben
a6268506fd
correct the name
2013-06-23 10:02:32 +01:00
Miek Gieben
d3f1ffa6e8
Tweak
2013-06-22 23:52:22 +01:00
Miek Gieben
8bf7e3c986
Bunch of updates
2013-06-22 21:57:38 +01:00
Miek Gieben
baa7ca4a82
Fix as212 server
2013-06-22 21:40:19 +01:00
Miek Gieben
93c0500dce
Add as212 thingy server as example
2013-06-22 20:40:01 +01:00
Miek Gieben
76db7d1a62
add benchmarking
2013-06-22 09:40:00 +01:00
Miek Gieben
e15a4b1508
Dont downcase when doing IsSubDomain, let the caller decide
2013-06-22 09:26:20 +01:00
Miek Gieben
5ae9b5214f
more testing and concurrent server benchmarking
2013-06-22 08:55:30 +01:00
Miek Gieben
9762efef1e
Use new names
2013-06-22 08:48:26 +01:00
Miek Gieben
2b65c92022
Merge branch 'master' of github.com:miekg/dns
2013-06-22 08:45:58 +01:00
Miek Gieben
bb732937a2
Add Benchmarking functions
2013-06-22 08:40:02 +01:00
Miek Gieben
38ea608d79
Rename the Label* functions
...
SplitLabels -> SplitDomainName
CompareLabels -> CompareDomainName
LenLabels -> CountLabel
-> NextLabel was added as a simple iterator-like function
2013-06-22 07:21:15 +00:00
Miek Gieben
74a0da119d
Uh uppercase it here too
2013-06-21 15:31:19 +00:00
Miek Gieben
ef73958b14
Make nextLabel public
2013-06-21 15:23:31 +00:00
Miek Gieben
9640d43c82
Make SplitLabels use Split
2013-06-21 15:17:12 +00:00
Miek Gieben
939abbfea7
Re-arrange some comments
2013-06-21 08:53:24 +00:00
Miek Gieben
45eff721ce
Add the beginning of a AS212 server
2013-06-20 20:52:55 +00:00