By a series of measures, including:
* Lots of debugging
* Setting a maximum packet size of 1024 bytes
* Counting initial connection as 80 bytes each way (this is probably
  a totally insane estimate)
* Counting bytes used by negotiations towards the bwlimiting delays for
  the next round of limitable connections
* Setting the outbound bandwidth limit to 2/3 of the value in the config
  file. This is entirely empirical; in theory it should work with it
  being the value in the config file, with the minor (unresolvable)
  issue that TCP sends acknowledgment packets for data being received,
  and I'm not sure how we can possibly estimate this (help would be
  greatly appreciated - if you can tell us it uses N bytes for each
  packet, we can implement that. I suppose at some point I may look up
  the RFC).
We have been able to get the outbound bandwidth limit working - more or
less - on nio. More testing, especially on loaded nodes, would be REALLY
useful.
-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to