Fixed
Details
Assignee
Gaston DombiakGaston DombiakReporter
Gaston DombiakGaston DombiakComponents
Fix versions
Affects versions
Priority
Critical
Details
Details
Assignee
Gaston Dombiak
Gaston DombiakReporter
Gaston Dombiak
Gaston DombiakComponents
Fix versions
Affects versions
Priority
Created April 21, 2006 at 10:39 PM
Updated December 12, 2006 at 2:42 AM
Resolved December 12, 2006 at 2:42 AM
Current logic:
We have a queue of packets that need to be sent to remote servers for which a connection does not exist. There is a pool of threads that take packets from the pool, try to establish a connection to the remote server and then send the packet. The problem is that when many packets need to be sent to the same remote server then many threads from the pool will be used (one for each packet) and only one will be actually trying to establish the connection while the other threads are blocked. This algorithm does not scale well.
New logic:
Use the same thread to send all queued packets whose target is the same remote server. This will ensure a correct delivery order and will also leave the thread pool with threads available for sending packets to other servers.