mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-21 16:00:10 +00:00
Also timeout RTSP if no response is received on an established connection for 10 seconds
This commit is contained in:
@@ -57,6 +57,7 @@ public class RtspConnection {
|
|||||||
try {
|
try {
|
||||||
s.setTcpNoDelay(true);
|
s.setTcpNoDelay(true);
|
||||||
s.connect(new InetSocketAddress(context.serverAddress, PORT), RTSP_TIMEOUT);
|
s.connect(new InetSocketAddress(context.serverAddress, PORT), RTSP_TIMEOUT);
|
||||||
|
s.setSoTimeout(RTSP_TIMEOUT);
|
||||||
|
|
||||||
RtspStream rtspStream = new RtspStream(s.getInputStream(), s.getOutputStream());
|
RtspStream rtspStream = new RtspStream(s.getInputStream(), s.getOutputStream());
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user