0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

use netconn

This commit is contained in:
Zack Scholl 2018-09-26 10:54:11 -07:00
parent 21cfcc0bc2
commit cc0ef58b9f

View file

@ -25,7 +25,7 @@ func New(n net.Conn) *Comm {
c.connection.SetDeadline(time.Now().Add(3 * time.Hour))
c.connection.SetWriteDeadline(time.Now().Add(3 * time.Hour))
c.writer = bufio.NewWriter(n)
c.connection = bufio.NewReader(n)
// c.connection = bufio.NewReader(n)
return c
}