Fix total byteSize tracking in connection

Previously no tracking was done so the cache size was effectively infinite.

This fixes #7