visionmedia/axon — pull request #105 by ebensing (2013-09-12 03:34:40+00:00)
Title: Priority Req/Rep sockets

So, this PR adds a mode on req/rep sockets that makes sure the least busy connection (defined as the connection with the least outstanding requests) gets the next request, but otherwise acts in a round robin fashion.

Usage:
```js
var sock = axon.socket('req');
sock.usePriority(true);
sock.bind(4000);
```
See Issue #103

Note: the test does take about 20~ seconds to run unfortunately, if you can think of a clearer way to test the functionality in less time, happy to change it.