trying to debug UDP+large MTU issues

This commit is contained in:
Arceliar 2018-02-20 17:31:12 -06:00
parent a81c361484
commit d3dc7765f2
2 changed files with 9 additions and 3 deletions

View file

@ -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()