mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
replace ServerConn.EnableReadFrames with EnableFrames; prevent writing if the flag is disabled
This commit is contained in:
@@ -126,8 +126,7 @@ func (ts *testServ) handleConn(conn *ServerConn) {
|
||||
|
||||
ts.readers[conn] = struct{}{}
|
||||
|
||||
conn.EnableReadFrames(true)
|
||||
conn.EnableReadTimeout(false)
|
||||
conn.EnableFrames(true)
|
||||
|
||||
return &base.Response{
|
||||
StatusCode: base.StatusOK,
|
||||
@@ -147,7 +146,7 @@ func (ts *testServ) handleConn(conn *ServerConn) {
|
||||
}, fmt.Errorf("someone is already publishing")
|
||||
}
|
||||
|
||||
conn.EnableReadFrames(true)
|
||||
conn.EnableFrames(true)
|
||||
conn.EnableReadTimeout(true)
|
||||
|
||||
return &base.Response{
|
||||
|
Reference in New Issue
Block a user