mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
use netconn
This commit is contained in:
parent
21cfcc0bc2
commit
cc0ef58b9f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue