Open ayonpals opened 1 week ago
ah ok I see. I think it was due to large transfer buffer size as well. Therefore more messages can fit. Thanks for reporting, I will consider your diff here is shared for patching.
It needs probably test for all to be covered
Looking into the code it looks like if parsing of any SIP message of a TCP stream fails, then also all the other SIP messages are ignored. Is it possible to enhance the code to send "400 Bad Request" response to client only for the bad request and process the other messages normally?
Hi ayonpals, thanks providing more context. Yes we need to deal this differentely.
If I pump SIP register messages with tools like SIPp, it is seen that Register handler is called less number of times than the actual SIP messages pumped. On further debugging it is seen that if a TCP stream contains a partial SIP message, all the other SIP messages in that TCP stream is ignored. Thats why the register handler is called less number of times.
The following changes solved the issue