connection buckets get not decremented in a private tor network
In Line 2112 of connection.c:
When we are handling a read/write operation from a connection, we have to decrement the connetion read/write bucket to track down bandwidth usage and make limiting functionable.
This line calles "connection_is_rate_limited()" to verify if we should decrement the bucket or not.
In Line 1895 of connection.c: Here we check if we have such unlimited connection. Unfortunately tor thinks that private nets are unlimited too, which should not be the case: Only linked connection should be free of limitation. Otherwise we would have problems viewing used Bandwidth Rate using Controlsocket or ARM in private tor setups.