Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in message framing detection #2268

Closed
pjsipbot opened this issue Nov 24, 2006 · 1 comment
Closed

Bug in message framing detection #2268

pjsipbot opened this issue Nov 24, 2006 · 1 comment

Comments

@pjsipbot
Copy link
Collaborator

2006-11-24 11:47:15: @bennylp created the issue on trac ticket 4

For TCP, if the remainder of a message contains garbage, it will cause the next valid message to be discarded. For example, consider the following:

INVITE sip:user@company.com SIP/2.0
To: sip:j.user@company.com
From: sip:caller@university.edu
Call-ID: 0ha0isndaksdj@10.0.0.1
CSeq: 8 INVITE
Via: SIP/2.0/TCP 135.180.130.133
Content-Type: application/sdp
Content-Length: 138

v=0
o=mhandley 29739 7272939 IN IP4 126.5.4.3
c=IN IP4 135.180.130.88
m=audio 49210 RTP/AVP 0 12
m=video 3227 RTP/AVP 31
a=rtpmap:31 LPC/8000
asdpasd08asdsdk:;;asd
 a0sdjhg8a0*...*;;;;

With current parsing, the garbage will be prepended to the next message, and it will cause the parsing of the next message to fail.


2006-11-24 11:48:22: @bennylp edited the issue description


2010-01-11 15:58:05: @bennylp changed milestone from unassigned to Known-Issues

@sauwming
Copy link
Member

I can't seem to reproduce it here. When there's parsing error, the next message will be processed just fine.

@sauwming sauwming closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants