mirror of https://github.com/schollz/croc.git
try fix
This commit is contained in:
parent
1049e9c8c8
commit
b573f5c853
|
@ -132,8 +132,8 @@ func chanFromConn(conn net.Conn) chan []byte {
|
|||
reader := bufio.NewReader(conn)
|
||||
|
||||
go func() {
|
||||
for {
|
||||
b := make([]byte, models.TCP_BUFFER_SIZE)
|
||||
for {
|
||||
n, err := reader.Read(b)
|
||||
if n > 0 {
|
||||
// c <- b[:n]
|
||||
|
|
Loading…
Reference in New Issue