Commit Graph

471 Commits

Author SHA1 Message Date
Karsten Loesing
7d2ec97550 Close a few readers/streams, spotted by Eclipse. 2012-07-25 08:59:53 +02:00
Karsten Loesing
ba749152d3 Bump to @type bridge-extra-info 1.1. 2012-06-29 13:56:04 +02:00
Karsten Loesing
4d82879488 Sanitize pluggable transport lines in bridge descriptors.
Implements #4957.
2012-06-29 12:43:10 +02:00
Karsten Loesing
1b62b6cdd9 Provide torperf files via rsync. 2012-06-01 14:02:54 +02:00
Karsten Loesing
b920fb0798 Add @type annotation and Downloaded line to exit lists. 2012-05-31 15:44:52 +02:00
Karsten Loesing
f4c952bc8c Only include active descriptor sinks in rsync/. 2012-05-31 15:16:32 +02:00
Karsten Loesing
843ae9b36c Include GetTor stats in rsync/. 2012-05-31 15:14:25 +02:00
Karsten Loesing
193dad7033 Add @type annotation to GetTor stats file. 2012-05-31 15:13:21 +02:00
Karsten Loesing
a76ade4725 Add @type annotation to bridge pool assignment files. 2012-05-31 11:45:40 +02:00
Karsten Loesing
1e683fea7f Don't scrub entry-* lines from bridge descriptors, either. 2012-05-30 17:37:37 +02:00
Karsten Loesing
2db5c12fe9 Make some major changes to the bridge descriptor sanitizer.
- Bridge network statuses contain a "published" line containing the
  publication timestamp, so that parsers don't have to learn that
  timestamp from the file name anymore.

- Bridge network status entries are ordered by hex-encoded
  fingerprint, not by base64-encoded fingerprint, which is mostly a
  cosmetic change.

- Server descriptors and extra-info descriptors are stored under the
  SHA1 hashes of the descriptor identifiers of their non-scrubbed
  forms.  Previously, descriptors were (supposed to be; see #5607)
  stored under the digests of their scrubbed forms.  The reason for
  hashing digests is to prevent looking up an existing descriptor
  from the bridge authority by its non-scrubbed descriptor digest.
  With this change, we don't have to repair references between
  statuses, server descriptors, and extra-info descriptors anymore
  which turned out to be error-prone (#5608).  Server descriptors and
  extra-info descriptors contain a new "router-digest" line with the
  hex-formatted descriptor identifier.  These lines are necessary,
  because we cannot calculate the identifier anymore and because we
  don't want to rely on the file name.

- Stop sanitizing bridge nicknames (#5684).

- Stop sanitizing *-stats lines (#5807).

- All sanitized bridge descriptors contain @type annotations (#5651).
2012-05-30 11:54:13 +02:00
Karsten Loesing
2288810bad Tweak some Torperf-related log messages. 2012-05-30 08:28:21 +02:00
Karsten Loesing
a77d67de24 Print out a warning if we're missing Torperf data lines. 2012-05-29 20:17:41 +02:00
Karsten Loesing
8b45d2fb00 Merge Torperf files into new .tpf file format.
Implements part of #3036.
2012-05-29 20:17:40 +02:00
Karsten Loesing
65c525c2ac Handle @type annotations when reading descriptors. 2012-05-11 16:17:09 +02:00
Karsten Loesing
bba639f852 Remove binaries.
Don't tell Sebastian, or he'll do his I-told-you-so dance...
2012-05-11 15:45:55 +02:00
Karsten Loesing
bdfb9ef79c ernie-howto.html is long gone. 2012-05-11 15:42:00 +02:00
Karsten Loesing
c7cc99d5bc Remove PostgreSQL dependency. 2012-05-11 15:42:00 +02:00
Karsten Loesing
107d40e9c4 Fix Eclipse warnings and update license to 2012.
Eclipse warnings include import * and unused code.
2012-05-11 15:41:55 +02:00
Karsten Loesing
442489f142 Add @type annotations to relay descriptors. 2012-05-11 15:24:18 +02:00
Karsten Loesing
1ea308da77 Sanity-check relay descriptors before writing them to disk.
In #5805 we found that we have quite a few files that are either empty or
truncated.  Turns out that the current metrics-db code doesn't allow
writing empty files, but it does allow writing truncated files.  We now
parse all descriptors with metrics-lib and only store valid descriptors to
disk.  Fixes part of #5813.
2012-05-09 12:15:44 +02:00
Karsten Loesing
7d535ea29f Suspend parsing .gz-compressed assignment files.
This is a temporary workaround for #5792.
2012-05-09 11:40:59 +02:00
Karsten Loesing
7406f4df4f Actually parse assignments*.gz, too. 2012-05-05 19:49:04 +02:00
Karsten Loesing
b6a95bb457 Adapt assignments processor to ponticum's files. 2012-05-05 19:11:25 +02:00
Karsten Loesing
ebc69a89e5 Only copy files to rsync/ that have actually changed. 2012-05-02 21:08:35 +02:00
Karsten Loesing
a66269f7bc Fix typo in package name. 2012-05-02 15:12:43 +02:00
Karsten Loesing
6893c1f174 ides/turtles has a new IP address. 2012-04-11 12:55:08 +02:00
Karsten Loesing
9d6c353dd6 Prepare for 'opt' strings being omitted in bridge descriptors.
See #5124 for plans to get rid of 'opt' strings in descriptors.  Looks
like the bridge descriptor sanitizer was the only code relying on them to
be there.  This is fixed now.
2012-03-08 10:17:40 +01:00
Karsten Loesing
14aa8276ce Keep conn-bi-direct lines in sanitized bridge descriptors.
In theory, bridges shouldn't be configured to collect these statistics.
But in practice, it doesn't hurt to keep the data in sanitized
descriptors.
2012-03-08 06:57:14 +01:00
Karsten Loesing
606cf9f55a Check whether Torperf files are becoming stale. 2012-03-07 13:26:45 +01:00
Karsten Loesing
d952649891 Update maatuska's IP. 2012-03-07 13:00:58 +01:00
Karsten Loesing
f14f601e77 Tone down a quite frequent log message. 2012-03-07 12:57:24 +01:00
Karsten Loesing
1a4932372f Abort when reading an unrecognized bridge pool assignment line.
Skipping unrecognized lines means we'll write an incomplete sanitized
bridge pool assignment file to disk, and we might not even notice.
2012-03-07 07:52:12 +01:00
Karsten Loesing
c3690c76cf Only skip downloading Torperf files younger than 5:30 hours. 2012-03-06 12:20:02 +01:00
Karsten Loesing
138b3397ec Download and merge possibly truncated Torperf files. 2012-03-06 11:53:39 +01:00
Karsten Loesing
53285440eb Update .gitignore. 2012-03-06 09:21:20 +01:00
Karsten Loesing
a2a7e6f173 Make log message about invalid or-address lines more useful. 2012-02-16 13:24:15 +01:00
Karsten Loesing
0a09848b09 Update exit list URL. 2012-02-12 21:22:39 +01:00
Karsten Loesing
fe5e7a0702 Move compiled Java classes from bin/ to classes/. 2012-01-27 11:31:04 +01:00
Karsten Loesing
c7d8ec8a32 Include exit lists in rsync, too. 2012-01-27 11:28:32 +01:00
Karsten Loesing
4cacf7e8f1 Fix typo in the bridge descriptor sanitizer. 2012-01-23 10:57:11 +01:00
Karsten Loesing
5504472d9a Add logging to rsync data provider. 2012-01-19 09:10:32 +01:00
Karsten Loesing
70a3d9989d Sanitize IPv6 bridge addresses. 2012-01-16 18:06:15 +01:00
Karsten Loesing
b7cc7e3f61 Move unit tests to a separate source tree. 2012-01-16 14:31:32 +01:00
Karsten Loesing
81dd6f373a Always copy files to rsync/ and keep last modified time. 2012-01-14 11:29:45 +01:00
Karsten Loesing
b63021a84f Don't overwrite past bridge network statuses unless we have to.
In theory, overwriting files with the same content doesn't hurt.  But it
makes it harder to identify only the files changed in the past 3 days for
the rsync/ directory.
2012-01-13 12:27:11 +01:00
Karsten Loesing
e6a0e94535 Copy recently processed files to an rsync/ directory. 2012-01-09 11:57:11 +01:00
Karsten Loesing
5986188f93 Check bridge stats in sanitized bridge descriptors.
Make sure that there's always a bridge-stats-end line preceding the
bridge-ips line.

We should add more such checks in the future.  This is probably something
to implement in metrics-lib once it's more stable.
2011-12-27 16:33:08 +01:00
Karsten Loesing
ff73f5b682 Download votes when v3-status-votes file is truncated.
In the past, we sometimes had problems rsync'ing the v3-status-votes file
from gabelmoo and were left with a truncated file.  When parsing this file
we successfully parsed the complete votes and failed parsing the last,
truncated vote.  But we however marked this vote as downloaded and made no
further attempts to download it from the directory authorities.

The fix is to only mark a vote as downloaded if it contains a valid
directory footer.
2011-06-14 21:47:36 +02:00
Karsten Loesing
c744625eb5 Test commit for #2021.
Note that the content of the PDF has not changed.  I only recompiled it,
hard-coding the \date{} value, though.
2011-05-18 12:08:08 +02:00