----- Original Message -----
From: "Shail Bhatnagar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 23, 2001 8:57 AM
Subject: [Sip-implementors] multiple pdus per tcp packet
> Bis-03 says explicitly that each datagram
> will have one request or response.
> With TCP transport however, there is a possibility
> of re-using the same connectin for multiple
> transactions and due to TCP segment size,
> SIP PDUs may be clipped or there may be multiple
> in a single tcp packet. Is this how everyone
> understands it to be ?
Yes. You have to implement your TCP socket reader to handle a) multilple
SIP messages per packet; b) multiple packets per SIP message; and c) a
combination of both.
> This also implies
> implicitly that you would have to potentially
> parse the message twice.
Not if you keep enough state about the message.
>
> On a related note, is the behavior of a user agent
> correct in the following scenario :
>
> A proxy opens a tcp connection to a user agent
> and sends a request and re-uses the connection
> to send another request. The first transaction
> is setup and the user agent decides to close the
> connection, thereby jeopardizing the second
> transaction that was using the same connection.
>
> IS this acceptable ??
>
Yes. BIS also says in sec 14.2:
If a server needs to return a response to a client and no longer has
a connection open to that client, it MAY open a connection to the
address listed in the Via header. Thus, a proxy or user agent MUST be
prepared to receive both requests and responses on a "passive"
connection.
> Thanks,
> Shail
> _______________________________________________
> Sip-implementors mailing list
> [EMAIL PROTECTED]
> http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
>
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors