mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
trying to debug UDP+large MTU issues
This commit is contained in:
parent
a81c361484
commit
d3dc7765f2
2 changed files with 9 additions and 3 deletions
|
@ -164,7 +164,7 @@ func (iface *tcpInterface) handler(sock *net.TCPConn) {
|
|||
}
|
||||
out := make(chan []byte, 32) // TODO? what size makes sense
|
||||
defer close(out)
|
||||
buf := bufio.NewWriterSize(sock, 65535)
|
||||
buf := bufio.NewWriterSize(sock, tcp_msgSize)
|
||||
send := func(msg []byte) {
|
||||
msgLen := wire_encode_uint64(uint64(len(msg)))
|
||||
before := buf.Buffered()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue