Patch: fix unix sockets under FreeBSD

Philip M. Gollucci pgollucci at ridecharge.com
Wed Oct 3 15:12:54 UTC 2007


Maxim Dounin wrote:
> Hello!
> 
> On Wed, 3 Oct 2007, Philip M. Gollucci wrote:
> 
>>> Attached patch fixes unix sockets support under FreeBSD (and probably
>>> other *BSD's too, not checked). Should apply cleanly to trunk.
>>>
>>> Problem background:
>>>
>>> FreeBSD's sendmsg() requires msg_name in msghdr structure to be NULL if
>>> not used, setting msg_namelen to 0 isn't enough.
>>>
>> I'm using memcached on FreeBSD -- I haven't noticed any issues -- is this
>> config specific or should I look to apply this ?
> 
> This patch is only relevant if you are using memcached with *unix*
> sockets, i.e. running it with "-s <path>" argument.
> 
> Nothing changes for other setups, so applying it in your case will be
> waste of time.
Oh right -- duh -- for some reason my brain was thinking tcp/ip
thx



-- 
------------------------------------------------------------------------
Philip M. Gollucci (philip at ridecharge.com) c:323.219.4708 o:703.749.9295x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.



More information about the memcached mailing list