Subject: [core] Test case for proxy + block + cache

From: Cullen Jennings <[email-masked]>
Date: Fri, 20 Apr 2012 06:49:40 -0600

Here are some test cases that I would hope would work. 

Two clients A and B are both using proxy P to access server S. 

A the same time A and B are using block to do a GET of a large resource. 

A has just retrieved a resources from S  without using block and it is freshly cached in P. B gets the same resources using block and hopefully P transfers the blocks from the cache. 

A is doing a PUT using block at the same time B is doing a get of the same resource. 

A and B both try to GET a resource that is an integer, add one to it, and PUT it back to server. They want to use the if-match approach to making sure their increment is atomic and does not get overwritten by the other client. 

Similar to above but they instead of an integer, it is a large resource and clients are using block.