mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-09-27 05:05:53 +08:00
try fix #240, add flush to grpcSimple
This commit is contained in:
@@ -123,7 +123,7 @@ func (s *Server) StartHandle(underlay net.Conn, newSubConnFunc func(net.Conn), f
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//log.Println("request headers", rq.Header)
|
//log.Println("request headers", rq.ContentLength, rq.Header)
|
||||||
|
|
||||||
shouldFallback := false
|
shouldFallback := false
|
||||||
|
|
||||||
@@ -208,6 +208,9 @@ func (s *Server) StartHandle(underlay net.Conn, newSubConnFunc func(net.Conn), f
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
rw.WriteHeader(http.StatusOK)
|
rw.WriteHeader(http.StatusOK)
|
||||||
|
if flusher, ok := rw.(http.Flusher); ok {
|
||||||
|
flusher.Flush()
|
||||||
|
}
|
||||||
|
|
||||||
sc := newServerConn(rw, rq)
|
sc := newServerConn(rw, rq)
|
||||||
if s.closed {
|
if s.closed {
|
||||||
|
Reference in New Issue
Block a user