diff options
author | Andrea Barberio <insomniac@slackware.it> | 2018-11-09 16:34:56 +0000 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2018-11-12 11:20:19 +0000 |
commit | 08eace5b3537c9cedf8fbf2f2a61562e3ffbc302 (patch) | |
tree | f7f07ca4094fe3729a5a11404f1f6e66683cc3f9 | |
parent | b388e716ca28ed5cb186e23a215a32d526d22cd0 (diff) |
Make server handlers async
-rw-r--r-- | dhcpv4/server.go | 2 | ||||
-rw-r--r-- | dhcpv6/server.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv4/server.go b/dhcpv4/server.go index 130ef54..94e4578 100644 --- a/dhcpv4/server.go +++ b/dhcpv4/server.go @@ -131,7 +131,7 @@ func (s *Server) ActivateAndServe() error { log.Printf("Error parsing DHCPv4 request: %v", err) continue } - s.Handler(pc, peer, m) + go s.Handler(pc, peer, m) } return nil } diff --git a/dhcpv6/server.go b/dhcpv6/server.go index 1dad4be..55a53e3 100644 --- a/dhcpv6/server.go +++ b/dhcpv6/server.go @@ -133,7 +133,7 @@ func (s *Server) ActivateAndServe() error { log.Printf("Error parsing DHCPv6 request: %v", err) continue } - s.Handler(pc, peer, m) + go s.Handler(pc, peer, m) } return nil } |