Fix a diagnostic that actually caused the connection to be dropped occasinally.
This commit is contained in:
@@ -498,11 +498,13 @@ rtsp_read_request(rtsp_conn_info *conn, rtsp_message **the_packet) {
|
||||
goto shutdown;
|
||||
}
|
||||
nread = read(conn->fd, buf + inbuf, buflen - inbuf);
|
||||
/*
|
||||
if (!nread) {
|
||||
debug(2, "RTSP connection closed.");
|
||||
reply = rtsp_read_request_response_shutdown_requested;
|
||||
goto shutdown;
|
||||
}
|
||||
*/
|
||||
if (nread < 0) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user