Miek Gieben
7e2a67cadb
Merge pull request #287 from andrewtj/atj-issue286
...
Fix for issue 286 - panic after closing ResponseWriter in server handler
2015-11-26 13:50:10 +00:00
Andrew Tunnell-Jones
3062dcb751
Check server TCP conn exists before reading
...
w.tcp could be nil if the conn has been closed by a handler.
2015-11-26 08:10:55 +00:00
Andrew Tunnell-Jones
cfa72d0862
Test closing TCP ResponseWriter in a handler
2015-11-26 08:04:38 +00:00
Miek Gieben
d274557152
Merge pull request #281 from LevenLabs/master
...
Instead of removing all RRs on Truncated, attempt to unpack
2015-11-02 11:51:50 +00:00
Miek Gieben
497abb0c48
README: add section about maintenance
...
Say how we deal with backward compat and what we "guarantee" for
Go DNS.
2015-11-02 07:52:41 +00:00
James Hartig
2d2c2ebcfc
Instead of removing all RRs on Truncated, attempt to unpack
2015-11-01 15:51:09 -05:00
Miek Gieben
6a1556664f
Merge pull request #283 from bboreham/spin-less
...
Only re-try AcceptTCP() if the error is temporary
2015-10-30 21:51:19 +00:00
Bryan Boreham
e54a6cf1bc
Only re-try AcceptTCP() if the error is temporary
2015-10-30 17:08:27 +00:00
Miek Gieben
adeb323cbc
Merge pull request #277 from FiloSottile/typeToRR
...
Expose TypeToRR
2015-10-17 16:19:22 +01:00
Filippo Valsorda
023972bb19
Expose TypeToRR
2015-10-16 23:36:49 +01:00
Miek Gieben
dfefa36553
Merge pull request #274 from FiloSottile/filippo/generate
...
Generate programmatically per-type code, including .len() and .copy()
2015-10-08 12:58:09 +01:00
Miek Gieben
fe4ec22b6b
Merge pull request #275 from dbriemann/namesmith
...
adding project using miekg/dns to README projects list
2015-10-08 10:39:27 +01:00
David Linus Briemann
606e7a3d43
adding project using miekg/dns to README projects list
2015-10-08 11:26:47 +02:00
Miek Gieben
ead33b75f6
Merge pull request #267 from sekimura/govet
...
tidyup a little with the latest golang.org/x/tools/cmd/vet
2015-10-07 20:36:46 +01:00
Filippo Valsorda
ff2b0714db
types_generate: use 1.5 static analysis packages
2015-10-07 18:24:55 +01:00
Miek Gieben
9b18c47669
Merge pull request #271 from FiloSottile/filippo/test_timeout
...
Refactor server shutdown to call Close() on conn and sync on srv.started
2015-10-07 13:47:31 +01:00
Filippo Valsorda
190e718ea2
Add comments to types_generate.go, move result to ztypes.go
2015-10-07 12:57:24 +01:00
Filippo Valsorda
25846488f9
Apply per-type code generation to .copy()
...
This fixes bugs in MB and CNAME.copy() (using sprintName for copying),
IPSECKEY (missed copyIP) and OPT (partially, Options was not copied as
slice; EDNS0 objects themselves are still pointers).
2015-10-07 05:51:36 +01:00
Filippo Valsorda
d4a4e089d0
Generate programmatically per-type code, including .len()
...
This process probably fixes a bug in NSAPPTR.len(), after a similar one was
found in HINFO.len().
This should also make it easier to make changes to these functions, and
check their correctness.
Generate the code by running "go generate".
2015-10-07 05:48:12 +01:00
Filippo Valsorda
e6885e3677
Set high timeouts in server_test.go not to fail on slow boxes and catch deadlocks
2015-10-07 00:13:40 +01:00
Filippo Valsorda
a58e9c7a9e
Refactor server shutdown to call Close() on conn and sync on srv.started
...
Remove the necessity for the hackish (and unreliable) fake packet.
Fix a couple races and unclutter the start/stop internal state.
2015-10-07 00:13:40 +01:00
Filippo Valsorda
7463496b65
Travis: add -v to go test to catch stalling tests
2015-10-07 00:13:40 +01:00
Miek Gieben
691455cf79
Merge pull request #272 from tsenart/master
...
client: SetReadDeadline after write, before read
2015-10-06 13:06:17 +01:00
Tomás Senart
56b3ff5401
client: SetReadDeadline after write, before read
...
The current code sets the read deadline at the same time as the write
deadline. If the write nearly times out but doesn't, the read timeout
can fire before the read happens within the specified deadline.
2015-10-06 13:34:20 +02:00
Miek Gieben
373b848617
HINFO does not need downcasing for DNSSEC
...
See the comment from Andrew:
https://github.com/miekg/dns/pull/270#issuecomment-145696618
2015-10-06 07:59:47 +01:00
Masayoshi Sekimura
ae0cb9ccb6
deleting a dot to retrigger travis CI
2015-10-05 20:14:57 -07:00
Miek Gieben
dea25f3332
Merge pull request #270 from FiloSottile/filippo/hinfo
...
Fix (*HINFO).len() and HINFO canonicalization in rawSignatureData
2015-10-05 15:32:23 +01:00
Filippo Valsorda
e9635cc83b
Fix (*HINFO).len() and HINFO canonicalization in rawSignatureData
2015-10-05 14:37:42 +01:00
Miek Gieben
9a6a6448f5
Merge pull request #268 from giskarda/master
...
Update ParseZone() documentation
2015-10-05 13:28:55 +01:00
Riccardo Setti
dd135484c5
Update ParseZone() documentation
2015-10-05 11:31:26 +01:00
Masa Sekimura
7dfd5c04dd
fix a stupid mistake "undefined: zone"
2015-09-30 09:42:47 -07:00
Masa Sekimura
a9a71b9628
gofmt and revert unnecessary changes
2015-09-30 09:08:17 -07:00
Masayoshi Sekimura
a14e77725f
tidyup a little with the latest golang.org/x/tools/cmd/vet
2015-09-29 23:04:25 -07:00
Miek Gieben
874ec87128
Merge branch 'master' of github.com:miekg/dns
2015-09-23 22:02:39 +01:00
Miek Gieben
3c158e6e74
Correct set srv.started to false on error
...
Unlock the lock and set started to false when we return an error
during the startup.
Fixes #263
2015-09-23 22:00:38 +01:00
Miek Gieben
273bc1d0ee
Make err explicit and drop the deref on *master
2015-09-23 16:48:28 +01:00
Miek Gieben
7da40742a8
Merge pull request #265 from TimSimmons/transfer-src
...
Allow supplying a Conn in Transfer struct
2015-09-23 16:46:58 +01:00
TimSimmons
0eeb50cbb8
Allow supplying a Conn in Transfer struct
...
- This allows a user to call `Dial` before they call `Transfer.In`,
thus specifying the attributes of a [Dialer](https://golang.org/src/net/dial.go?s=5630:5708#L17 )
before their AXFR
- Add some docs to Transfer.in to show the functionality
closes #264
2015-09-23 10:37:57 -05:00
Miek Gieben
859f7da631
Merge branch 'master' of github.com:miekg/dns
2015-09-22 07:44:04 +01:00
Miek Gieben
68ed04e36e
More documentation for IsDomainName
2015-09-22 07:41:03 +01:00
Miek Gieben
60a765d35b
Merge pull request #260 from jesselucas/doc-edit
...
Updating doc.go
2015-09-17 07:47:08 +01:00
Jesse Lucas
cae5606f00
Updating doc.go
...
Msg is undefined and should use dns.Msg
2015-09-16 22:18:25 -04:00
Miek Gieben
46e689ee11
Merge pull request #259 from asergeyev/i250
...
Remove TestSingleInflight as per #250
2015-09-15 16:35:04 +01:00
Alex Sergeyev
7eb4621b6c
Remove TestSingleInflight as per #250
2015-09-15 11:24:38 -04:00
Miek Gieben
d4ee3f8757
Merge pull request #258 from corny/patch-1
...
Add myself as user
2015-09-14 16:22:54 +01:00
Julian K.
8a70f4bd29
Add myself as user
2015-09-12 01:31:32 +02:00
Miek Gieben
8395762c34
Merge pull request #239 from andrewtj/atj-sidn
...
Add AXFR tests run against SIDN's DNS Workbench
2015-09-05 08:12:15 +01:00
Miek Gieben
17a9b53ea9
Merge pull request #256 from benschw/patch-1
...
adding project using miekg/dns to README list
2015-09-01 17:33:26 +01:00
Ben Schwartz
264015f64f
adding project using miekg/dns to README list
2015-09-01 11:12:39 -05:00
Miek Gieben
540899743c
Handle the last TCP connection
...
We currently close the connection after 128 TCP queries. But the
when the last query comes in, we close the connection immediately.
Fix this by moving the check to before we read data from the TCP
socket.
Fixes : #218 .
2015-08-31 17:40:56 +01:00