[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Very basic traffic measurement for svnserve?

From: Daniel Kastenholz <daniel.kastenholz_at_in.tum.de>
Date: 2005-02-26 13:43:22 CET

Hi,

I've recently installed svnserve on a server that is shared by a number
of projects and miss the ability to perform a (very basic) traffic
accounting.

I haven't looked into the sources, yet, but I assume that
- there is some sort of session management implemented
- every new connection (TCP/IP, STDIN/STDOUT, ... ?) gets such a session
assigned
- every session has a session descriptor
- a traffic counter could be added to this descriptor that could be
increased whenever data is written to or read from the stream
- when a session is terminated, the name of the repository and the value
of the counter could be written to some kind of logging facility (log
file, syslog, ...).

To forestall misunderstandings: Yes, I'm willing to implement the
feature myself.

But before I start it would be important for me to know if you would
take this patch into an official release. I update regularly from RPM's,
and before it turns out that I have to patch again and again, I'd rather
choose a different approach, probably involving packet analysis or some
other really bad and oversized hack. So if you have any objections in
priciple, I'd appreciate if you could make them now. And if you don't,
please support this patch!

Any architecture- or style-related suggestions, remarks, hints... ?

Thanks!

Daniel

---
PS: Yes, I know that traffic measurement would be possible with Apache & 
WebDAV.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Feb 26 14:10:44 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.