Commit Graph

2941 Commits

Author SHA1 Message Date
Alex Sergeyev 87f8764f43 Added a comment about shutdown tests 2014-08-29 08:37:32 -04:00
Alex Sergeyev 32d6e5396e Continued removing Sleeping tests:
* incorporated @miekg suggestions on switch vs if
* for now moved reaction to stopXXX channel messages until
  after the packet is responded to avoid client timeout in
  Shutdown (causing 2 sec. hanged thread)

Still not great how the abort logic is implemented....
2014-08-29 08:31:27 -04:00
Alex Sergeyev 4b21f37064 Proposed way of creating no-timeout tests and...
... fix for Server.Shutdown() function.
2014-08-28 23:11:49 -04:00
Miek Gieben 28dc2fa7be Merge pull request #109 from asergeyev/master
Some tokens only worked in upper case, fixing that.
2014-08-28 18:46:37 +01:00
Alex Sergeyev 05bec3968a Addressed cases when tokenUpper makes sense to be used. 2014-08-28 13:34:00 -04:00
Alex Sergeyev 1959cc8421 Added tests to support mixed case Type and Class 2014-08-28 13:05:05 -04:00
Alex Sergeyev 9c4dca35d5 Removed unnecessary toUpper. 2014-08-28 12:59:54 -04:00
Alex Sergeyev 84d9ad0a39 Fixed typo in "tokens" 2014-08-28 12:59:54 -04:00
Alex Sergeyev 476d122030 Changed test for lowercase tokens; improved code:
* for cases if $ORIGIN or $TTL are used in mixed case
* changed test name too
2014-08-28 12:59:54 -04:00
Alex Sergeyev d1ea8497ad Added couple failure tests for lowercase class/type 2014-08-28 12:59:54 -04:00
Alex Sergeyev 66342f4ea2 Added test to verify RRSIG type covered in mixed case. 2014-08-28 12:59:54 -04:00
Alex Sergeyev 755a8483b6 Committing @miekg patch from gist.
https://gist.github.com/miekg/f1b1fe6dba7d6b088eec
2014-08-28 12:59:54 -04:00
Alex Sergeyev e9bffe6796 Added lowercase test strings with RR class omitted 2014-08-28 12:59:54 -04:00
Alex Sergeyev 0df460c0fa Added lowercase RR tests where TTL is in play too. 2014-08-28 12:59:54 -04:00
Alex Sergeyev f40b966c47 Added lowercase RRClass and RRType tests per #108.
... need to add RRSIG covering type lowercased later.
2014-08-28 12:59:54 -04:00
Miek Gieben 2127b822dd Add comment about Systemd 2014-08-28 07:54:23 +00:00
Miek Gieben 53a11d9163 better err message 2014-08-27 22:09:21 +01:00
Miek Gieben cd4dac5f59 update README 2014-08-23 07:52:34 +01:00
Miek Gieben 8fecf17714 Check that off <= lenmsg
Defense in depth, this should happen, but it happens... So check
for it and return an error.

Maybe (there is no testcase) fixes #106
2014-08-23 07:43:00 +01:00
Miek Gieben 34f5a12bfc Don't crash on emtpy string in compressionLenSearch
Fixes #105
2014-08-22 08:46:24 +00:00
Miek Gieben 9f5fcf8459 Add extra length test for issue #105 2014-08-22 08:15:35 +01:00
Miek Gieben f0bd4137e2 Make Shutdown return error
This will be handy in feature, so that we can add a 1 second
timeout and then return failure.
2014-08-20 15:12:59 +00:00
Miek Gieben 01bbcbef60 Update documentation for Shutdown.
This completes issue #101.
Fixes #101
2014-08-19 22:08:13 +01:00
Miek Gieben eed2b9aeec Fix Shutdown 2014-08-19 21:56:37 +01:00
Miek Gieben f912994258 Don't relay on deadline to stop the server.
We just send ourselves an UDP or TCP packet so that the listener fails
through and picks up the quit bool send on the channel.
2014-08-19 21:46:00 +01:00
Miek Gieben 263a337674 Change test ports, stuff might still be running 2014-08-19 09:33:50 +00:00
Miek Gieben 6c631cd4ff Implement Shutdown()
This is working for TCP, but for UDP the Read does not honor the
deadline settings.
2014-08-19 09:25:41 +00:00
Miek Gieben f5fe400c53 Lowercase all test output.
Add Shutdown tests as well
2014-08-19 08:39:04 +00:00
Miek Gieben 292c925c9f update documentation 2014-08-18 22:21:02 +01:00
Miek Gieben 0d300b1fce Add deadline to the listeners
Call this deadline to the listener will timeout and we will get to
so if the server should shutdown.
2014-08-18 22:14:29 +01:00
Miek Gieben f3a6c86462 Implement Shutdown() call
And fix some tests to call Fatal().
2014-08-18 22:06:29 +01:00
Miek Gieben 6cf24a5637 Add a Shutdown method to server.
Allow gracefull shutdown of a server.
2014-08-18 20:30:10 +01:00
Miek Gieben eb2d26cb96 Remove Pool from server.
A noop for some time, remove it.
2014-08-18 20:29:54 +01:00
Miek Gieben 4d3dac9c36 Add the OPENPGPKEY RR. 2014-08-14 09:18:08 +01:00
Miek Gieben 7eb49f3e37 Add zone test file
Add a file where we can specify RRs to be tested.
2014-08-14 09:15:25 +01:00
Miek Gieben 9b0cfb5a13 Dont mirror CD bit 2014-08-07 22:29:44 +01:00
Miek Gieben 22f120cfe8 Copy CD bit too 2014-08-05 21:17:24 +01:00
Miek Gieben b0e216a0ee Merge branch 'master' of github.com:miekg/dns 2014-08-05 07:44:52 +01:00
Miek Gieben 69091a1fd6 Add SIG0 TODO 2014-08-05 07:43:12 +01:00
Miek Gieben 17c7921aa2 Documentation updates 2014-07-31 08:48:26 +00:00
Miek Gieben 4dd48338af documentation tweaks 2014-07-30 07:35:06 +01:00
Miek Gieben 1243dcbc89 Make Id a variable to points to id (renamed from Id())
This way the Id function can be overruled by clients to have
another implementation for the Id function:

To make it static: dns.Id = func() uint16 { return 1234 }
2014-07-30 07:17:13 +01:00
Miek Gieben fb3a1585ad fmt 2014-07-27 20:38:11 +01:00
Miek Gieben d178b7da2f Merge pull request #103 from innoying/master
Add support for ResponseWriter.LocalAddr()
2014-07-27 19:06:09 +01:00
Luke Young 0a6f133b26 Match format of other code 2014-07-27 10:44:39 -07:00
Luke Young 12f91af6ed Added ResponseWriter.LocalAddr support 2014-07-27 10:43:07 -07:00
Miek Gieben b691354313 Add OPENPGPKEY, but without type code 2014-07-24 09:29:42 +01:00
Miek Gieben 44520ac719 Merge branch 'systemd'
Add ActivateAndServe to start a server from systemd.
2014-07-23 12:20:35 +01:00
Miek Gieben 62ee88c895 Documentation 2014-07-22 08:27:59 +01:00
Miek Gieben 5222cf4826 drop 1.1 2014-07-21 19:47:30 +01:00