mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-30 16:29:57 +00:00
handleControlStream should not always return true
This commit is contained in:
parent
0626a3e505
commit
444bb5daec
@ -140,7 +140,7 @@ func (c *Client) handleControlStream(qs quic.Session, stream quic.Stream) (bool,
|
|||||||
if sh.OK && c.congestionFactory != nil {
|
if sh.OK && c.congestionFactory != nil {
|
||||||
qs.SetCongestionControl(c.congestionFactory(sh.Rate.RecvBPS))
|
qs.SetCongestionControl(c.congestionFactory(sh.Rate.RecvBPS))
|
||||||
}
|
}
|
||||||
return true, sh.Message, nil
|
return sh.OK, sh.Message, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) handleMessage(qs quic.Session) {
|
func (c *Client) handleMessage(qs quic.Session) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user