coolexp / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

Binding a specific interface does not work in Mac OS X #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
bind(2) will fail on mac os x when Redis starts with a configuration file
that tells the server to bind a specific address instead to listen to all
the interfaces. The error is:

 [EADDRNOTAVAIL]    The specified address is not available from the local
                        machine.

Works perfectly on Linux. No clue about that but it is not so urgent right now.

Original issue reported on code.google.com by anti...@gmail.com on 1 Mar 2009 at 2:08

GoogleCodeExporter commented 8 years ago
Ok fixed in SVN, mac os x requires to memset the socket address structure with 
zeros
before to use it.

Original comment by anti...@gmail.com on 1 Mar 2009 at 3:54