mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-22 16:17:27 +00:00
Fix RTSP payload timeout being too aggressive
This commit is contained in:
1 parent
ef8c49f135
commit
31d7f237eb
1 file changed
+2
-2
@@ -88,8 +88,8 @@ public class RtspConnection {
|
||||
// Parse the response and determine whether it has a payload
|
||||
RtspResponse message = (RtspResponse) RtspParser.parseMessageNoPayload(byteBufferToString(responseHeader.array(), responseHeader.limit()));
|
||||
if (message.getOption("Content-Length") != null) {
|
||||
// The payload should immediately follow the header, so only wait another second
|
||||
ByteBuffer responsePayload = enetConnection.readPacket(65536, 1000);
|
||||
// The payload comes in a second packet
|
||||
ByteBuffer responsePayload = enetConnection.readPacket(65536, RTSP_TIMEOUT);
|
||||
message.setPayload(byteBufferToString(responsePayload.array(), responsePayload.limit()));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user