[paranoia] SCSI timeout problem

Agthorr agthorr at barsoom.org
Sat Nov 20 09:00:30 PST 1999



I'm using cdparanoia-III-alpha9.6, with a Plextor PlexWriter CD-R (4x
read/6x write) SCSI drive, using a Buslogic SCSI-2 card.  While trying
to rip one particular CD, I encountered a problem where I received
numerous SCSI read and write timeouts.  cdparanoia could still
successfully rip the CD, but it was excruciatingly slow, and I needed
to use the -z option in order to avoid getting lots of V's.  I still
got lots of e's.

I looked in the code, and I found that if I increased the timeout
duration for SCSI reads and writes to 1 minute each (previously 5 and
15 seconds respectively), that I did not get any e's or V's at all
with this CD.  Also, the rip took a more reasonable amount of time.

I've ripped many CDs previously, and had never encountered this
before.  My best guess is that the CD has some problems, but the drive
itself tries to correct the problem.  When cdparanoia times out and
retries, it defeats whatever the drive is doing, and makes it
extremely difficult for the drive to read the CD correctly.

Attached is a patch for the change I made, although I imagine this
change would be slower for anyone who actually needs the timeout to
occur.

-- Dan Stutzbach




--- scsi_interface.c~	Wed Aug 18 02:24:26 1999
+++ scsi_interface.c	Sat Nov 20 11:46:01 1999
@@ -219,7 +219,7 @@ static int handle_scsi_cmd(cdrom_drive *
 
     FD_ZERO(&fdset);
     FD_SET(d->cdda_fd,&fdset);
-    tv.tv_sec=5;
+    tv.tv_sec=60;
     tv.tv_usec=0;
 
     while(1){
@@ -255,7 +253,7 @@ static int handle_scsi_cmd(cdrom_drive *
 
     FD_ZERO(&rset);
     FD_SET(d->cdda_fd,&rset);
-    tv.tv_sec=15;
+    tv.tv_sec=60;
     tv.tv_usec=0;
 
     while(1){

--- >8 ----
List archives:  http://www.xiph.org/archives/
Paranoia homepage: http://www.xiph.org/paranoia/
To unsubscribe from this list, send a message to 'paranoia-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Paranoia mailing list