On of my colleagues created a patch for this problem. Which I can't
seem to attach to the group via the web interface so here it is
inline.
He explained that "A struct sockaddr isn't big enough to hold an ipv6
address. It's just basically the header of the structure."
<snip>
--- gearmand-0.14-orig/libgearman-server/gearmand.c 2010-06-29
23:26:10.000000000 +0100
+++ gearmand-0.14/libgearman-server/gearmand.c 2010-08-17
15:17:45.000000000 +0100
@@ -500,14 +500,14 @@
void *arg)
{
gearmand_port_st *port= (gearmand_port_st *)arg;
- struct sockaddr sa;
+ struct sockaddr_storage sa;
socklen_t sa_len;
char host[NI_MAXHOST];
char port_str[NI_MAXSERV];
int ret;
sa_len= sizeof(sa);
- fd= accept(fd, &sa, &sa_len);
+ fd= accept(fd, (struct sockaddr *)&sa, &sa_len);
if (fd == -1)
{
if (errno == EINTR)
</snip>
On Aug 13, 12:59 am, "
jay.parol...@escapemg.com"