Hi!
I have a doubt, in memcached-1.2.4 try_read_network(conn *c) funcation,
when read returns -1 and errno is not EWOULDBLOCK or EAGAIN, it returns
0. If it's more suitable to change state to conn_closing and return 1. the
patch is as below:
1928,1934c1928
< else {
< /* otherwise we have a real error, on which
we close the connection */
< if (settings.verbose > 0)
< fprintf(stderr, "Failed to read, and
not due to blocking\n");
< conn_set_state(c, conn_closing);
< return 1;
< }
---
> else return 0;