server: if TCP frames are written before the PLAY response, queue and send them anyway, like UDP already does

This commit is contained in:
aler9
2021-03-30 22:06:58 +02:00
parent d39996c824
commit d3561d9b26
4 changed files with 44 additions and 10 deletions

View File

@@ -518,7 +518,7 @@ func TestServerPublishRecordErrorPartialTracks(t *testing.T) {
require.Equal(t, "not all announced tracks have been setup", err.Error())
}
func TestServerPublishFrames(t *testing.T) {
func TestServerPublish(t *testing.T) {
for _, proto := range []string{
"udp",
"tcp",
@@ -711,7 +711,7 @@ func TestServerPublishFrames(t *testing.T) {
}
}
func TestServerPublishFramesErrorWrongProtocol(t *testing.T) {
func TestServerPublishErrorWrongProtocol(t *testing.T) {
conf := ServerConf{
UDPRTPAddress: "127.0.0.1:8000",
UDPRTCPAddress: "127.0.0.1:8001",