Multiple listen sockets

Wojtek Meler wmeler at
Thu Aug 23 10:24:27 UTC 2007

Hi there !

I've found in TODO:

* memcached to listen on more than one IP.  mailing list request.

and created a patch.
It allows to listen both on one unix socket and multiple tcp/ip sockets.
Option -l can be repeated and may contain port number so

./memcached -l -l

will cause memcached to listen on both sockets.
There is MAX_LISTEN_CONNS constant (in memcached.h) that limit number of 
listen sockets.
Also -N option is introduced that disable network support (using unix 
socket doesn't disable networking any more).

How about applying it ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: multilistensocket.patch
Type: application/octet-stream
Size: 13525 bytes
Desc: not available
Url :

More information about the memcached mailing list