14 lines
895 B
Go
14 lines
895 B
Go
|
|
// connectionPool provides functions to create and manage long-term connections to hosts
|
|
|
|
package connectionPool
|
|
|
|
//TODO: Build package
|
|
// Currently, each connection made to hosts requires establishing a new connection for each requestType.
|
|
// This is good for privacy for things like message downloads, where each connection
|
|
// creates a fresh requestor identity established over a different tor circuit.
|
|
// For hosts, we need a way to establish long term connections which can be reused for different request types
|
|
// This package should interface with peerClient in a way that allows us to manage these connections
|
|
// We must make sure we only use each long-term connection for its intended Mate/Host/Moderator identity
|
|
// For example, if we have a long term connection that we use to download content for hosting, we should
|
|
// not use that same connection to download our mate messages
|