[reSIProcate] Content-Length is not taken seriously by SipMessage
Derek MacDonald
derek at counterpath.com
Thu Aug 3 12:53:10 CDT 2006
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 at list.sipfoundry.org [mailto:resiprocate-
> devel-bounces at list.sipfoundry.org] 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
More information about the resiprocate-devel
mailing list