Fixed typo: SO_RCVBUF instead of SO_SNDBUF
authorTrond Norbye <trond.norbye@sun.com>
Tue, 24 Feb 2009 15:07:24 +0000 (16:07 +0100)
committerTrond Norbye <trond.norbye@sun.com>
Tue, 24 Feb 2009 15:07:24 +0000 (16:07 +0100)
libmemcached/memcached_connect.c

index ca35420066582efcf7d62cc18e24845ca4921fa8..753392b3f58e8a9e1f471da508e38b15b5cbbf8e 100644 (file)
@@ -115,7 +115,7 @@ static memcached_return set_socket_options(memcached_server_st *ptr)
   {
     int error;
 
-    error= setsockopt(ptr->fd, SOL_SOCKET, SO_SNDBUF, 
+    error= setsockopt(ptr->fd, SOL_SOCKET, SO_RCVBUF, 
                       &ptr->root->recv_size, (socklen_t)sizeof(int));
     WATCHPOINT_ASSERT(error == 0);
   }