1
0
Fork 0
mirror of https://github.com/SamTherapy/dnscrypt.git synced 2024-11-23 22:13:45 +00:00
dnscrypt/cmd
Andrey Meshkov 5ddb58f703
Graceful shutdown of the DNSCrypt server (#6)
Graceful shutdown of the DNSCrypt server

This PR implements Server.Shutdown(ctx context.Context) method that allows
to shut down the DNSCrypt server gracefully.

Some additional changes that were inadvertently made while doing that:
1. Added benchmark tests
2. Started using dns.ReadFromSessionUDP / dns.WriteToSessionUDP instead of implementing it by ourselves
3. Generally improved tests
4. Added depguard 
5. Improved comments overall in the code
2021-03-19 15:42:48 +03:00
..
convert_dnscrypt_wrapper.go Graceful shutdown of the DNSCrypt server (#6) 2021-03-19 15:42:48 +03:00
generate.go Graceful shutdown of the DNSCrypt server (#6) 2021-03-19 15:42:48 +03:00
lookup.go Graceful shutdown of the DNSCrypt server (#6) 2021-03-19 15:42:48 +03:00
main.go Graceful shutdown of the DNSCrypt server (#6) 2021-03-19 15:42:48 +03:00
server.go Graceful shutdown of the DNSCrypt server (#6) 2021-03-19 15:42:48 +03:00