After looked into C# documents, I found out that there is wrong writing code like: socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Linger, true);
the last argument should not be “true”.
After change code to
LingerOption lingerOption = new LingerOption (true, 10);
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Linger, lingerOption);
I can manage to get data from Couchbase on Mac OS X!!!
Thanks a lot Jeff!!
Bowie