Commit Graph

2915 Commits

Author SHA1 Message Date
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
Miek Gieben e4d735493c It compiles 2014-07-09 20:10:27 +01:00
Miek Gieben 97b62e4aff Cleanup the pull request somewhat 2014-07-09 20:07:23 +01:00
Miek Gieben 448e8eb700 Merge branch 'ISSUE-95' of https://github.com/EverythingMe/dns into udp 2014-07-09 19:41:48 +01:00
Miek Gieben 28d936c032 disable ipv6 test until I know how to check for v6 conn. 2014-07-09 07:23:54 +01:00
Miek Gieben f110a8404a remove empty last line 2014-07-08 14:53:28 +00:00
Omri Bahumi 0ef26ca4b8 [ISSUE-95] Added copyright notice to udp.go, udp_linux.go & udp_other.go 2014-07-08 17:44:36 +03:00
Miek Gieben 89edef6b6b Merge pull request #97 from EverythingMe/travis
Added Travis-CI integration
2014-07-08 15:40:20 +01:00
Omri Bahumi 6d33ede2b2 Added travis build status to README.md 2014-07-08 17:35:41 +03:00
Omri Bahumi 14df7a327d Added .travis.yml for Travis-CI 2014-07-08 17:23:29 +03:00
Miek Gieben d09d1781e8 Add v6 benchmarking test.
Mostly to exercise the v6 serving path (of which most lies in the
standard library). But it also is a good test of v6 functionality.
2014-07-08 14:15:08 +00:00