Some questions about the internals

Diego Woitasen diego at woitasen.com.ar
Thu May 10 12:07:59 PDT 2012


Hi,
 I'm reading the code to understand clearly how it works to implement
on-disk cache. I have some definitions and questions about Xcodec that
I want to confirm/ask:

- There are two "pipes" per connection. encoder ---> decoder and
decode <----encoder.
- The encoder side is the only that creates data hashes. So we have
two different caches per connection, one on each direction.
- The cache is not shared between pipes on the same connection but
it's shared between encoder->decoder pipes on different connections.
- Each wanproxy side have an assigned UUID. It's not persistent right
now, but it should be.
- The encoder side inform this UUID to the decoder side after
connection establishment.
- The UUID is used to identify cache, to be sure that both sides are
using the same hash namespace. As I described before, there are two
pipes per connection, each pipe "shares" one cache identified by the
UUID.

Let me know if I'm wrong. :)

Regards,
 Diego

-- 
Diego Woitasen



More information about the wanproxy mailing list