On Jan 29, 2009, at 7:50 PM, Mikael Johansson wrote:

Hi,

send() allows you to specify MSG_NOSIGNAL in the flags parameter which will suppress the SIGPIPE signal. The library can detect this error when send() returns -1 and errno is set to EPIPE, and flag the server as down. We use this in pecl/memcache and it seems to work fine.

What do you do on platforms that doesn't support MSG_NOSIGNAL? If the user of libmemcached doesn't have support for MSG_NOSIGNAL on his platform he must handle the signal, and I don't like the situation where the default behavior libmemcached would cause a program abort on machine A while work perfectly on machine B if a client node goes down...

Just my 0.5 NOK.

Cheers,

Trond

Reply via email to