Path: utzoo!attcan!uunet!lll-winken!ames!ncar!gatech!bloom-beacon!mit-eddie!uw-beaver!cornell!batcomputer!sun.soe.clarkson.edu!rpi!pawl17.pawl.rpi.edu!shadow From: shadow@pawl.rpi.edu (Deven T. Corzine) Newsgroups: comp.sys.amiga Subject: Re: Fred Fish, PD programs Message-ID: <195@rpi.edu> Date: 17 Jan 89 10:18:09 GMT References: <6540@louie.udel.EDU> <14892@cisunx.UUCP> <1624@cveg.uucp> <146@rpi.edu> <34@snll-arpagw.UUCP> Sender: usenet@rpi.edu Organization: Rensselaer Polytechnic Institute, Troy, NY Lines: 58 [line eater? what li In article <34@snll-arpagw.UUCP> paolucci@snll-arpagw.UUCP (Sam Paolucci) writes: >In article <146@rpi.edu> shadow@pawl.rpi.edu (Deven T. Corzine) writes: >->Actually, I've noticed that on every Unix system I've used ftp on, the >->number of hash marks is never quite the same, even for the same file. >->And the number of hash marks is always at least as many as there >->should be, but usually more. For example, transferring an 80K file, >->you might get 93 hash marks one time, and 107 another. My >->interpretation of why this happens is that in the code, it does a >->read(fd,buf,1024) to read 1K, printing a hash mark for that 1K, but >->not taking into account (as far as printing hash marks goes) that the >->read call may return less than 1024 bytes read. So you end up with >->extra reads, and therefore an inappropriate number of hash marks >->printed. I believe it has the same problem with writes, also. (Haven't >->watched carefully; I usually do "ftp" get commands so the umask value >->will take effect.) JTYMLTK. > >Another possibility is that some packets were bad so they had to be >retransmitted again :^). > >->Deven >-> >->------- shadow@pawl.rpi.edu --- Deven Thomas Corzine ------------------------- >-- > -+= SAM =+- >"the best things in life are free" > > ARPA: paolucci@snll-arpagw.llnl.gov Oh, sure. Happens ALL the time. After all, TCP is just SOOO unreliable... :-) BTW, ftp apprears to get the number of hash marks right on "put" commands. Only the "get" commands exhibit the flaw. Deven [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] [inews fodder] ------- shadow@pawl.rpi.edu ------- Deven Thomas Corzine --------------------- Cogito shadow@acm.rpi.edu 2346 15th Street Pi-Rho America ergo userfxb6@rpitsmts.bitnet Troy, NY 12180-2306 (518) 272-5847 sum... In the immortal words of Socrates: "I drank what?" ...I think.