Skip to content

Commit

Permalink
increase datagram size
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Apr 25, 2018
1 parent 748bd53 commit 94ddd4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion peerdiscovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ func Discover(settings ...Settings) (discoveries []Discovered, err error) {
}

const (
maxDatagramSize = 8192
// https://en.wikipedia.org/wiki/User_Datagram_Protocol#Packet_structure
maxDatagramSize = 66507
)

// Listen binds to the UDP address and port given and writes packets received
Expand Down

0 comments on commit 94ddd4c

Please sign in to comment.