yarpc / yarpc-go

A message passing platform for Go
MIT License
401 stars 101 forks source link

[4/n] tlsmux: add mux listener #2134

Closed jronak closed 2 years ago

jronak commented 2 years ago

This PR adds mux'd listener, which accepts both TLS and non-TLS connections. TLS identified connections are wrapped in a TLS handler and passed as a plaintext connection to the caller.

codecov[bot] commented 2 years ago

Codecov Report

Merging #2134 (424bb99) into dev (b162af0) will decrease coverage by 0.03%. The diff coverage is 67.85%.

@@            Coverage Diff             @@
##              dev    #2134      +/-   ##
==========================================
- Coverage   87.70%   87.66%   -0.04%     
==========================================
  Files         252      253       +1     
  Lines       14057    14085      +28     
==========================================
+ Hits        12328    12347      +19     
- Misses       1339     1344       +5     
- Partials      390      394       +4     
Impacted Files Coverage Δ
transport/internal/tlsmux/listener.go 67.85% <67.85%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b162af0...424bb99. Read the comment docs.