mcollina/mosca — pull request #154 by mocheng (2014-06-23 10:41:04+00:00)
Title: Fix #151

Fix https://github.com/mcollina/mosca/issues/151 .

Redis has LRANGE command to get LIST content from left to right. The second argument is starting point; and the third argument is length.

During fixing the issue. I found that offline packets is inserted with command LPUSH. As a result, LRANGE would get newly inserted packets before old packets. This might not be expected. So, I update LPUSH with RPUSH as well.