Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Sep 19, 2007
1 parent da6da89 commit 2ca2256
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions doc/design/ConcurrentConnectionEstablishment.txt
@@ -1,6 +1,6 @@


// Version: $Id: ConcurrentConnectionEstablishment.txt,v 1.2 2007/09/19 12:41:37 belaban Exp $
// Version: $Id: ConcurrentConnectionEstablishment.txt,v 1.3 2007/09/19 12:42:43 belaban Exp $
// Author: Bela Ban


Expand Down Expand Up @@ -33,16 +33,12 @@ Let's assume our own address is A
On connect to B:
----------------

- connect(B)
- If connect(B) fails: close connection to B
- Lock CT
- If connection exists for B: return existing connection
- Else:
- Lock CT
- If B not in CT: add key/value with newly established connection
- Else:
- If B's address > A's address --> remove the existing entry for B (closing the connection !) and add
the newly created connection for B to the CT
- Else close the connection which resulted from connect to B
- Unlock CT
- Connect(B)
- Add connection to CT
- Unlock CT



Expand Down

0 comments on commit 2ca2256

Please sign in to comment.