Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Commit

Permalink
Fix RTSP payload timeout being too aggressive
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Mar 8, 2016
1 parent bb50ec5 commit c7b4133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/limelight/nvstream/rtsp/RtspConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ private RtspResponse transactRtspMessageEnet(RtspMessage m) throws IOException {
// 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()));
}

Expand Down

0 comments on commit c7b4133

Please sign in to comment.