刘河 hace 6 años
padre
commit
7ec3e82b0f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/mux/conn.go

+ 1 - 1
lib/mux/conn.go

@@ -115,7 +115,7 @@ func (s *conn) write(buf []byte, ch chan struct{}) {
 	start := 0
 	l := len(buf)
 	for {
-		if s.hasWrite > 10 {
+		if s.hasWrite > 50 {
 			<-s.getStatusCh
 		}
 		s.hasWrite++