Also timeout RTSP if no response is received on an established connection for 10 seconds

This commit is contained in:
Cameron Gutman 2016-01-04 23:55:58 -06:00
parent 0b9e7aa05b
commit 4d420b29cb

View File

@ -57,6 +57,7 @@ public class RtspConnection {
try {
s.setTcpNoDelay(true);
s.connect(new InetSocketAddress(context.serverAddress, PORT), RTSP_TIMEOUT);
s.setSoTimeout(RTSP_TIMEOUT);
RtspStream rtspStream = new RtspStream(s.getInputStream(), s.getOutputStream());
try {