El Tuesday 01 April 2008 15:02:26 Robert Sparks escribió:
> 3261 says you SHOULD include the Content-Length on UDP. That's only
> not a MUST because
> there was some deployed 2543 stuff at the time that 3261 went out.

I haven't read anywhere that it SHOULD include Content-Length in UDP request:
6231 says:

 18.3 Framing
   In the case of message-oriented transports (such as UDP), if the
   message has a Content-Length header field, the message body is
   assumed to contain that many bytes.  If there are additional bytes in
   the transport packet beyond the end of the body, they MUST be
   discarded.  If the transport packet ends before the end of the
   message body, this is considered an error.  If the message is a
   response, it MUST be discarded.  If the message is a request, the
   element SHOULD generate a 400 (Bad Request) response.  If the message
   has no Content-Length header field, the message body is assumed to
   end at the end of the transport packet.

Maybe it appears in other place as SHOULD?


> 3261 does not say a missing Content-Length means a length of 0. It says
> "If the message
>     has no Content-Length header field, the message body is assumed to
>     end at the end of the transport packet.
> " (see section 18.3, page 147).

Yes, it was an understanding failure of mine. Thanks.


> Can you point to where the text led you to believe it should be
> considered 0?

I suppose in my mind XD


Thanks a lot.

-- 
Iñaki Baz Castillo
[EMAIL PROTECTED]

_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to