Files
teleport/lib/multiplexer
Jim Bishopp 805239952f Fix race condition in multiplexer tests (#9660)
Some tests in multiplexer passed connections to Mux before registering
to handle a specific type of connection (TLS, Postgres, etc). When the
Mux Serve function handles the connection before the type of connection
is registered to be handled, it will close the connection.

Race condition:
1. create Mux
2. send new connection to Mux listener
3. register DB listener and receive conn

Fixed race:
1. create Mux
2. register DB listener
3. send new connection to Mux listener
4. receive conn from DB listener
2022-01-05 18:30:34 -05:00
..
2021-07-21 09:53:33 -07:00
2021-09-13 11:54:49 +02:00