| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
authorities, then don't try to cache any v1 directories.
svn:r6162
|
|
|
|
| |
svn:r6156
|
|
|
|
| |
svn:r6143
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Surround all constants by (parens), whether we'll be using them
in a denominator or not.
2) Express all time periods as products (24*60*60), not as multiplied-out
constants (86400).
3) Comments like "(60*60) /* one hour */" are as pointless as comments
like "c = a + b; /* set c to the sum of a and b */". Remove them.
4) All time periods should be #defined constants, not given inline.
5) All time periods should have doxygen comments.
6) All time periods, unless specified, are in seconds. It's not necessary
to say so.
To summarize, the old (lack of) style would allow:
#define FOO_RETRY_INTERVAL 60*60 /* one hour (seconds) */
next_try = now + 3600;
The new style is:
/** How often do we reattempt foo? */
#define FOO_RETRY_INTERVAL (60*60)
next_try = now + RETRY_INTERVAL;
svn:r6142
|
|
|
|
| |
svn:r6139
|
|
|
|
| |
svn:r6138
|
|
|
|
|
|
|
|
| |
event loop when holding open a conn for flushing but it
doesn't want to flush any more bytes yet.
svn:r6114
|
|
|
|
| |
svn:r6105
|
|
|
|
| |
svn:r6103
|
|
|
|
| |
svn:r6015
|
|
|
|
|
|
| |
or are at least 60 seconds old
svn:r6013
|
|
|
|
|
|
|
| |
i hope they appreciate it.
svn:r6004
|
|
|
|
| |
svn:r5949
|
|
|
|
|
|
|
| |
other meaning in this context that are confusing.
svn:r5936
|
|
|
|
|
|
|
|
| |
to think about downloading more server descriptors. this way
we don't have a 10 second pause in initial bootstrapping.
svn:r5916
|
|
|
|
|
|
|
| |
less often. not critical but might as well stay in sync with stable.
svn:r5910
|
|
|
|
|
|
|
| |
established a circuit.
svn:r5884
|
|
|
|
|
|
|
|
| |
this will make startup on dirservers less noisy.
it may also break things in subtle ways.
svn:r5878
|
|
|
|
| |
svn:r5869
|
|
|
|
|
|
|
| |
the network before we finish writing to him.
svn:r5850
|
|
|
|
|
|
|
| |
was obsolete as soon as he started. big oops.
svn:r5807
|
|
|
|
| |
svn:r5793
|
|
|
|
|
|
|
| |
this is our last easy chance for a wholesale change. heave ho.
svn:r5782
|
|
|
|
|
|
|
|
| |
every 10 seconds. this way we don't try to do 500 tls's at
once every 20 minutes.
svn:r5763
|
|
|
|
|
|
|
|
|
| |
for a week, rather than closing them once we detect a duplicate.
also, avoid some duplicate mark-for-closes in connection-housekeeping.
svn:r5752
|
|
|
|
| |
svn:r5747
|
|
|
|
| |
svn:r5746
|
|
|
|
|
|
|
| |
These statistics need to be uint64_t's.
svn:r5686
|
|
|
|
|
|
|
|
| |
(config options EntryNodes and StrictEntryNodes still not
implemented.)
svn:r5673
|
|
|
|
| |
svn:r5658
|
|
|
|
| |
svn:r5637
|
|
|
|
| |
svn:r5607
|
|
|
|
|
|
| |
have_minimum_dir_info, and make the latter function smarter.
svn:r5591
|
|
|
|
|
|
| |
intended.
svn:r5582
|
|
|
|
|
|
|
|
|
|
|
|
| |
we screwed up the formatting in wild and unpredictable ways.
fix it before it becomes convention to format logs in wild and
unpredictable ways.
still need to do src/common/ someday.
svn:r5551
|
|
|
|
|
|
| |
160-character-per-line limit; this will creep down.
svn:r5548
|
|
|
|
|
|
|
| |
what to expect.
svn:r5538
|
|
|
|
| |
svn:r5490
|
|
|
|
|
|
| |
remove the other; just make it warn.
svn:r5470
|
|
|
|
|
|
|
| |
(nick, do i have my libevent strerror dance moves correct?)
svn:r5462
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Weasel says circuit_get_by_conn is his main timesink. Most of its
users were just checking whether OR conns had circuits, so add a
circuit count to OR conns, and check that. One was
circuit_about_to_close_conn, which was doing an O(n^2) series of calls
to get all circs on an OR conn, so make an O(n) function for that.
Finally, circuit_get_by_edge_conn was using it as a sanity test that
has been around for a while but never found any actualy insanity, so
kill that.
circuit_get_by_conn is finally dead, which is good, since it was never
sane to begin with.
svn:r5460
|
|
|
|
| |
svn:r5443
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
don't tell you (it happens!); and rotate TLS connections once a week.
1) If an OR conn becomes more than a week old, make it obsolete.
2) If it's obsolete and empty, kill it.
3) When an OR makes a second connection to you, allow it.
4) If we want to send a new create cell, but the best conn we've
got is obsolete, and the router is 0.1.1.9-alpha-cvs or later, ask
for a new conn instead.
5) When we time out on circuit building on the first hop, make that
connection obsolete.
svn:r5429
|
|
|
|
| |
svn:r5424
|
|
|
|
|
|
| |
do not think it works quite right.
svn:r5423
|
|
|
|
| |
svn:r5375
|
|
|
|
| |
svn:r5368
|
|
|
|
| |
svn:r5347
|
|
|
|
| |
svn:r5345
|
|
|
|
|
|
|
|
| |
be more fair on loaded Tor servers, and it might resolve our
Windows crash bug. It might also slow things down.
svn:r5332
|