mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Also timeout RTSP if no response is received on an established connection for 10 seconds
This commit is contained in:
parent
0b9e7aa05b
commit
4d420b29cb
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user