1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00
This commit is contained in:
Zack Scholl 2018-09-26 09:11:36 -07:00
parent 73d8eadce4
commit 42c0240e50

View File

@ -132,9 +132,8 @@ func chanFromConn(conn net.Conn) chan []byte {
reader := bufio.NewReader(conn)
go func() {
b := make([]byte, models.TCP_BUFFER_SIZE)
for {
b := make([]byte, models.TCP_BUFFER_SIZE)
n, err := reader.Read(b)
if n > 0 {
res := make([]byte, n)