0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00
This commit is contained in:
Zack Scholl 2018-09-26 09:23:07 -07:00
parent 1049e9c8c8
commit b573f5c853

View file

@ -132,8 +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 {
// c <- b[:n]