Reinstate end of conversation detection.

This commit is contained in:
Mike Brady
2016-05-07 16:30:11 +01:00
parent 1b7fceb7d1
commit 429b04f13c
+4 -3
View File
@@ -498,13 +498,14 @@ rtsp_read_request(rtsp_conn_info *conn, rtsp_message **the_packet) {
goto shutdown;
}
nread = read(conn->fd, buf + inbuf, buflen - inbuf);
/*
if (!nread) {
if (nread==0) {
// a blocking read that returns zero means eof -- implies connection closed
debug(2, "RTSP connection closed.");
reply = rtsp_read_request_response_shutdown_requested;
goto shutdown;
}
*/
if (nread < 0) {
if (errno == EINTR)
continue;