1
0
Fork 0

Feature: add udp timeout configuration

This commit is contained in:
Linden Krouse 2021-01-07 11:16:03 -05:00 committed by GitHub
parent e5a01c7cc8
commit fc7ec17905
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 98 additions and 22 deletions

View file

@ -89,7 +89,8 @@ func NewUDPEntryPoint(cfg *static.EntryPoint) (*UDPEntryPoint, error) {
if err != nil {
return nil, err
}
listener, err := udp.Listen("udp", addr)
listener, err := udp.Listen("udp", addr, time.Duration(cfg.UDP.Timeout))
if err != nil {
return nil, err
}