ietf-tapswg / api-drafts

Architecture, interface, and implementation drafts for the definition of an abstract API for IETF TAPS
Other
24 stars 15 forks source link

What happens when reusing a preconnection? #1369

Closed mwelzl closed 1 year ago

mwelzl commented 1 year ago

From the review by Paul Wouters, COMMENT part:

I have a question on this code:

       Preconnections are reusable after being used to initiate a
       Connection, whether this Connection was closed or not. Hence, it
       would be correct to continue as follows after the above example:

       //.. carry out adjustments to the Preconnection, if desired
       Connection := Preconnection.Initiate()

What would happen here? I can imagine a "compiler" turning this into a noop. I can also see it would kill the existing Connection state and start a new one. This could be to a different IP address (eg if the DNS name has A and AAAA). When starting a new one, what would happen to any Message or Event queues for Connection ?