rtsp: check EOS in the RTSP receive and return an error code
This helps the caller detect disconnection events. Fixes #15624 Closes #15626
This commit is contained in:
parent
ae016b0cce
commit
e243e73363
@ -213,6 +213,11 @@ static CURLcode rtsp_done(struct Curl_easy *data,
|
||||
(data->conn->proto.rtspc.rtp_channel == -1)) {
|
||||
infof(data, "Got an RTP Receive with a CSeq of %ld", CSeq_recv);
|
||||
}
|
||||
if(data->set.rtspreq == RTSPREQ_RECEIVE &&
|
||||
data->req.eos_written) {
|
||||
failf(data, "Server prematurely closed the RTSP connection.");
|
||||
return CURLE_RECV_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
return httpStatus;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user