mirror of
https://github.com/schollz/croc.git
synced 2024-11-24 16:23:47 +03:00
try fix
This commit is contained in:
parent
73d8eadce4
commit
42c0240e50
@ -132,9 +132,8 @@ func chanFromConn(conn net.Conn) chan []byte {
|
|||||||
reader := bufio.NewReader(conn)
|
reader := bufio.NewReader(conn)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
b := make([]byte, models.TCP_BUFFER_SIZE)
|
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
b := make([]byte, models.TCP_BUFFER_SIZE)
|
||||||
n, err := reader.Read(b)
|
n, err := reader.Read(b)
|
||||||
if n > 0 {
|
if n > 0 {
|
||||||
res := make([]byte, n)
|
res := make([]byte, n)
|
||||||
|
Loading…
Reference in New Issue
Block a user