Re: last updates / SEND envelope

Charles Cazabon <[email protected]> Tue, 4 Mar 2003 08:14:43 -0600
Newsgroups gmane.mail.bikini.devel
Message-ID <[email protected]>
Bruce Guenter <[email protected]> wrote:
> Whoops on the subject?

My Makefile didn't set the envelope sender when it auto-sent the diff to the
list, so it was rejected as not being from a list member.  I forgot to edit
the subject when I manually forwarded it back to the list, after trimming out
the rest of the bounce message.  I updated my Makefile so it should work okay
next time.

> > +@item Once the server has responded to the @samp{PUT} command with a
> > positive +response, the client sends exactly @samp{content-size} octets of
> > 8-bit message +data to the server, followed by @samp{finished} plus CRLF.
> 
> What is the purpose of the "finished" terminator?  The client has already
> said how much it wants to send.  Am I missing something?

I put it in here for consistency with the PUT command -- and I put it in there
because I wanted to make sure that the client and server were still in sync.

It was/is supposed to catch the case where a client improperly calculated the
size of the message based on CRLF line endings, then sent it to the server
with the proper LF-only endings.  If "finished" CR LF isn't the next thing
sent, the server can detect that, rather than padding the message out to the
specified length with whatever the client happened to send next.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                           <[email protected]>
BikINI project website:    http://www.qcc.ca/~charlesc/software/bikini/
GPL'ed software available at:     http://www.qcc.ca/~charlesc/software/
-----------------------------------------------------------------------