< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] Content-Length is not taken seriously by SipMessage


It isn't ignored for TCP; it is ignored for UDP.  The rational for this is
people are more likely to get their content length wrong as opposed to stray
bytes in a UDP packet.

> -----Original Message-----
> From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:resiprocate-
> devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Byron Campen
> Sent: Thursday, August 03, 2006 7:29 AM
> To: resiprocate-devel
> Cc: Adam Roach
> Subject: [reSIProcate] Content-Length is not taken seriously by SipMessage
> 
>       When a SipMessage is created, the value in the Content-Length header
> is ignored. Instead, we assume everything that remains in the buffer
> is part of the body, and use that to calculate our Content-Length.
> Technically, we must take the Content-Length header-field-value
> seriously, and ignore/discard any extra bytes. Why aren't we doing this?
> 
> Best regards,
> Byron Campen