mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
do not close the connection during ServerConn.Read
This commit is contained in:
@@ -11,6 +11,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func handleConn(conn *gortsplib.ServerConn) {
|
func handleConn(conn *gortsplib.ServerConn) {
|
||||||
|
defer conn.Close()
|
||||||
|
|
||||||
onRequest := func(req *base.Request) (*base.Response, error) {
|
onRequest := func(req *base.Request) (*base.Response, error) {
|
||||||
switch req.Method {
|
switch req.Method {
|
||||||
case base.Options:
|
case base.Options:
|
||||||
|
@@ -126,7 +126,6 @@ outer:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sc.nconn.Close()
|
|
||||||
done <- errRet
|
done <- errRet
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user