Hello,

Guillaume Delacour, le Mon 27 Oct 2014 23:36:15 +0100, a écrit :
>   I don't really understand why getpeername is called line 415, as 
> tcp_transport
>   is not tcp (need further investigations).

But it is forced to tcp when calling dispatch_conn_new, see attached
patch.

Samuel
--- memcached.c.original        2015-10-20 22:04:50.000000000 +0000
+++ memcached.c 2015-10-20 22:04:54.000000000 +0000
@@ -4102,7 +4102,7 @@
                 STATS_UNLOCK();
             } else {
                 dispatch_conn_new(sfd, conn_new_cmd, EV_READ | EV_PERSIST,
-                                     DATA_BUFFER_SIZE, tcp_transport);
+                                     DATA_BUFFER_SIZE, c->transport);
             }
 
             stop = true;

Reply via email to