Skip to content

Commit

Permalink
DisableKeepAliveRequests.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusfriedman committed Nov 15, 2023
1 parent 8bd062e commit a3d8435
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions UnitTests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1772,17 +1772,17 @@ static void TestRtspClient(string location, System.Net.NetworkCredential cred =
//Attach a logger
client.Logger = new Media.Common.Loggers.ConsoleLogger();

//Enable echoing headers
//client.EchoXHeaders = true;
//Enable echoing headers
//client.EchoXHeaders = true;

//Enable sending blocksize header (sometimes helpful for better bandwidth utilization)
//client.SendBlocksize = true;

//If UserAgent should be sent.
//client.SendUserAgent = true;
//client.UserAgent = "LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)";
//Enable sending blocksize header (sometimes helpful for better bandwidth utilization)
//client.SendBlocksize = true;

//If UserAgent should be sent.
//client.SendUserAgent = true;
//client.UserAgent = "LibVLC/2.1.5 (LIVE555 Streaming Media v2014.05.27)";

//client.DisableKeepAliveRequest = true;
Start:

//Allow the client to switch protocols if data is not received.
Expand Down Expand Up @@ -2272,7 +2272,7 @@ static void TestServer()
var source = new Media.Rtsp.Server.MediaTypes.RtspSource($"R2_05{i}", $"rtsp://8.15.251.101:1935/rtplive/R2_05{i}", Rtsp.RtspClient.ClientProtocolType.Tcp, 10 * 1024);
source.RtpClient.ThreadEvents = true;
source.RtpClient.IListSockets = true;
source.RtpClient.RtcpEnabled = false;
source.RtspClient.DisableKeepAliveRequest = true;
server.TryAddMedia(source);
sources.Add(source);
}
Expand Down

0 comments on commit a3d8435

Please sign in to comment.