Changeset 707

Show
Ignore:
Timestamp:
02/22/08 04:38:00 (9 months ago)
Author:
dormando
Message:

Close socket on unhandled read errors. (Tao Hui <taohui3@gmail.com>)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/memcached.c

    r704 r707  
    19411941        if (res == -1) { 
    19421942            if (errno == EAGAIN || errno == EWOULDBLOCK) break; 
    1943             else return 0; 
     1943            /* Should close on unhandled errors. */ 
     1944            conn_set_state(c, conn_closing); 
     1945            return 1; 
    19441946        } 
    19451947    }