Date: Tue, 29 Jan 2002 15:00:05 -0800 (PST) From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/34412: tftp will still try and receive traffic even after receiver's disk has filled Message-ID: <200201292300.g0TN05e05692@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/34412; it has been noted by GNATS. From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: Maxim Konovalov <maxim@macomnet.ru> Cc: bug-followup@FreeBSD.ORG Subject: Re: misc/34412: tftp will still try and receive traffic even after receiver's disk has filled Date: Tue, 29 Jan 2002 14:50:17 -0800 On Tue, Jan 29, 2002 at 10:20:02AM -0800, Maxim Konovalov wrote: [snip] > ... and for tftp: > > Index: tftp.c > =================================================================== > RCS file: /home/ncvs/src/usr.bin/tftp/tftp.c,v > retrieving revision 1.7 > diff -u -r1.7 tftp.c > --- tftp.c 2001/12/11 23:43:15 1.7 > +++ tftp.c 2002/01/29 18:13:09 > @@ -242,6 +242,10 @@ > goto abort; > } > write_behind(file, convert); > + if (errno == ENOSPC ) { > + nak(errno + 100); > + break; > + } > for ( ; ; ) { > alarm(rexmtval); > do { Actually, this should read, Index: tftp.c =================================================================== RCS file: /home/ncvs/src/usr.bin/tftp/tftp.c,v retrieving revision 1.7 diff -u -r1.7 tftp.c --- tftp.c 2001/12/11 23:43:15 1.7 +++ tftp.c 2002/01/29 18:13:09 @@ -242,6 +242,10 @@ goto abort; } write_behind(file, convert); + if (errno == ENOSPC ) { + nak(ENOSPACE); + break; + } for ( ; ; ) { alarm(rexmtval); do { That is, there is a specific error code for this condition specified within the TFTP protocol (RFC 1350). -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201292300.g0TN05e05692>
