From 08eace5b3537c9cedf8fbf2f2a61562e3ffbc302 Mon Sep 17 00:00:00 2001 From: Andrea Barberio Date: Fri, 9 Nov 2018 16:34:56 +0000 Subject: Make server handlers async --- dhcpv4/server.go | 2 +- 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 } -- cgit v1.2.3