alphacomm / alpharpc

AlphaRPC is an RPC daemon based on ZeroMQ that can be used to distribute workload over one or multiple servers.
alpharpc.net
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Fix worker handler scalability #44

Closed reenl closed 9 years ago

reenl commented 9 years ago

The Worker Handler dispatched request by looping through the requests. When there are many requests, this causes a timeout on workers for which there are no (or only a few) requests.

Therefore, the Worker Handler will now dispatch the requests by looping through the requested actions. Since this list is usually significantly shorter, the timeouts go away.

jacobkiers commented 9 years ago

The build failure for PHP 5.3 is a PHPUnit segfault after all tests have passed. Since it also passes on all other platform, I'm okay with this.