uber / tchannel

network multiplexing and framing protocol for RPC
MIT License
1.15k stars 129 forks source link

prefer outgoing connections for hyperbahn service channels #1326

Closed ShanniLi closed 9 years ago

ShanniLi commented 9 years ago

r @Raynos @kriskowal @anson627 cc @jcorbin

PreferOutgoing.getScore should not create new outgoing connections; otherwise, it gets into race condition that ends up creating multiple out connections. That's why we observed 4x connection increase instead of 2x in Ringpop. On the other hand, it is not necessary anymore.

anson627 commented 9 years ago

:+1:

ShanniLi commented 9 years ago

Turned into two separate PRs.