Any issues with pipelining requests?

Dustin Sallings dustin at spy.net
Mon Apr 23 03:22:57 UTC 2007


On Apr 22, 2007, at 19:48, David Phillips wrote:

> You can deadlock if you try to send all your requests without reading
> anything.  You need to read data when available.  This is not
> memcached specific.  Example with fake numbers:
>
> client has 64k of requests to send
> client does a 64k blocking write, actually writes 32k
> memcached reads 32k, has a 128k response
> memcached writes 32k
> (client is stalled trying to write the remaining 32k)
> (memcached is stalled trying to write the remaining 96k)

	That's fine.  I've got a select loop and I'm doing non-blocking  
writes and reads when available.  I just wanted to make sure it'd  
never send something out of order.

-- 
Dustin Sallings




More information about the memcached mailing list