Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site nyit.UUCP
Path: utzoo!linus!philabs!nyit!bp
From: bp@nyit.UUCP (Bruce Perens)
Newsgroups: net.news
Subject: Re: uucico timing out
Message-ID: <133@nyit.UUCP>
Date: Fri, 13-Sep-85 23:31:21 EDT
Article-I.D.: nyit.133
Posted: Fri Sep 13 23:31:21 1985
Date-Received: Mon, 16-Sep-85 08:26:48 EDT
References: <383@greipa.UUCP>
Distribution: net
Organization: NYIT Computer Graphics Lab., Old Westbury, N.Y.
Lines: 24

Besides the over-and-out timeout, there's a  timeout  problem  in
xcp() (uucico source cpmv.c, 4.2 distribution).

My news feed's uucico timed mine out whenever a  large  file  was
copied  by xcp(). Xcp() uses fread() and fwrite(), but they are a
lot slower than read() and write() for copying large  buffers.  I
hacked  xcp()  to  use  read()  and write(), and the problem went
away.  Another way to fix this would have been to write a  faster
implementation of fread() and fwrite().

There should probably be some kind of keep-alive message during a
time-consuming process like xcp(). This is tricky to program.

Xcp() is only used to copy a file if  the  spool  file  can't  be
linked to the destination file by xmv(). This happens if the des-
tination file already exists, or if the destination is not on the
same disk partition as the spool file.

					Bruce Perens
					NYIT Computer Graphics Lab.
decvax!philabs!nyit!bp
allegra!sbcs!nyit!bp
nyit!bp@sbcs.csnet
516-686-7644