Commit Graph

2925 Commits

Author SHA1 Message Date
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
Miek Gieben a71489b611 EDNS0: implement RFC 7314
Add the new option code.
2014-07-21 19:31:28 +01:00
Miek Gieben 00ea2ba8c8 remove go 1.1 from the build targets 2014-07-21 15:37:00 +01:00
Miek Gieben e1cb18539a Systemd support
Rename StartAndServe to ActivateAndServe and only use one PacketConn or
Listener. This just adds a new entry point into starting a server.
2014-07-21 15:24:55 +01:00
Miek Gieben d80ad4aae5 Add support for systemd socket activation 2014-07-18 20:32:17 +01:00
Miek Gieben 9af5c1f8a8 Merge pull request #99 from egonelbre/master
Fix: UDP serving on windows
2014-07-18 13:22:54 +01:00
Egon Elbre dc06b3bde1 undo some changes 2014-07-17 20:48:28 +03:00
Egon Elbre 1d5e55d9b6 Fix: UDP serving on windows, UDP serving test paniced
Also, replaced t.Error/t.Fail with t.Fatal in some places.
2014-07-17 13:14:50 +03:00
Miek Gieben 5c48f3623a Merge pull request #98 from omribahumi/travis-cross-compilation
Added GOOS={linux,darwin,windows} to the Travis-CI build matrix
2014-07-11 13:38:36 +01:00
Omri Bahumi c7ae6d7ab3 Added GOOS={linux,darwin,windows} to the Travis-CI build matrix 2014-07-11 15:25:23 +03:00
Miek Gieben c00b800150 And add the import 2014-07-11 09:28:39 +00:00
Miek Gieben 4ae6bac881 typo 2014-07-11 09:27:55 +00:00
Miek Gieben e571f699d2 Move more syscall function into their own impl.
Windows is stupid
2014-07-11 08:47:49 +00:00
Miek Gieben 907e91be57 udp: Windows: abstract the GetSocketOption away too.
Windows is weird, put this stuff in the impl. specific sub file too.
2014-07-11 08:13:05 +01:00
Miek Gieben 892588a93c Fix the function documentation 2014-07-09 22:23:02 +01:00
Miek Gieben 20ddea5ac9 even shorter 2014-07-09 21:06:42 +01:00
Miek Gieben d161b9087e Cleanup the PR a bit
Remove code and simplify some functions. Documentation is still on the
todo.
Also don't export any of these functions and/or types.
2014-07-09 21:02:21 +01:00