Thanks Vijay,

I imagine the most likely, practical implementation to be one in which each 
socket maintains a list of active client transactions. Whenever a client 
transaction receives final response it must notify the socket thread to inform 
the individual socket to remove this association. When a socket detects EOF it 
posts all the "transaction manager" a message containing this list. The 
"transaction manager" must then clear all the relevant transactions and restart 
them in such a fashion that the underlying socket layer attempts a new 
connection.

Matthew Gardiner


-----Original Message-----
From: Vijay K. Gurbani [mailto:[EMAIL PROTECTED]
Sent: 30 June 2006 15:47
To: Matthew Gardiner
Cc: SIP Implementors
Subject: Re: [Sip] draft-ietf-sip-connect-reuse-05


[... This thread is migrating here from the SIP WG mailing list.
      For a context, please see the archives in the SIP WG
      mailing list ...]

Matthew Gardiner wrote:
> Yes, fair enough. However, this suggestion is unworkable, for 
> instance in a situation where the remote end dropped it's connection 
> on a timer, and is perfectly willing to accept to a new connection. 
> If the transaction was a reINVITE for hold, for example, the caller 
> would be left waiting for 32 seconds minimum, before the local stack 
> fires Timer B and decides it must initiate a new connection in order 
> to place the hold.

True; good scenario to discuss.

> As an implementator I'd want a better technique than this.

In that case, one could architect your software such that the
TLS thread implements a observer pattern between itself
and the worker threads.

Since the TLS thread knows when the socket is closed (as per
our earlier email exchange), it will simply insert the
approriate event in the worker thread's event queue, or invoke
a callback function, or do whatever to let the worker thread
know that it should take pre-emptive action.

In the end, it will all boil down to programming techniques.

Thanks,

- vijay
-- 
Vijay K. Gurbani  [EMAIL PROTECTED],research.bell-labs.com,acm.org}
Bell Laboratories, Lucent Technologies, Inc.
2701 Lucent Lane, Rm. 9F-546, Lisle, Illinois 60532 (USA)

_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to