This commit is contained in:
Zack Scholl 2018-09-26 09:23:07 -07:00
parent 1049e9c8c8
commit b573f5c853
1 changed files with 1 additions and 1 deletions

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]