memcached reads data, non-blocking, in a loop, until it gets EAGAIN. In a couple places. Once it gets EAGAIN it knows there's no more data to read and continues with the command.
-Dormando On Wed, 19 Nov 2008, Clint Webb wrote: > Normally EAGAIN means that there was no data there to retrieve. Normally > the event system would only fire when there is data to get, so I'm not sure > how this relates. > > On Mon, Nov 17, 2008 at 11:41 PM, prox <[EMAIL PROTECTED]> wrote: > > > > > hey guys, > > > > if i strace the memcache process there is a message repeating every > > few lines "EAGAIN (Resource temporarily unavailable)", but i dont know > > what it means. any suggestions? > > > > here is a cutout of straces output, maybe it helps? > > > > read(7, 0xa63de3b2, 261206) = -1 EAGAIN (Resource > > temporarily unavailable) > > setsockopt(7, SOL_TCP, TCP_CORK, [1], 4) = 0 > > time(NULL) = 1226932729 > > time(NULL) = 1226932729 > > time(NULL) = 1226932729 > > write(7, "STORED\r\n", 8) = 8 > > setsockopt(7, SOL_TCP, TCP_CORK, [0], 4) = 0 > > read(7, 0xa63de008, 262144) = -1 EAGAIN (Resource > > temporarily unavailable) > > > > > > -- > "Be excellent to each other" >
