Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.6.1
-
None
Description
In ConnectionManager, sendMessage creates a new SendingConnection when connection host key is not found in connectionsById. But there might be too many unnecessary connections created before connectionsById is updated in the connection-manager-thread.run. In out test ConnectionMangerTest fails on "connection reset by peer" or "timeout" when there're too many message sending threads. We should make connectionRequests a map to track the connections by key so that connections can be reused.