| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Differentiate more duplicated log entries
svn:r8542
|
|
|
|
|
|
|
| |
Make distinct all non-bug messages at notice or higher that appear 3 or more times.
svn:r8541
|
|
|
|
|
|
|
| |
spawn_func fixes: have cpuworker_main and dnsworker_main confirm to the right interfaces [casting func to void* is icky]. Also, make pthread_create() build without warnings.
svn:r8327
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- made configure link to required system dll's if building for win32
- added diffs for libevent 1.1b
- forced user to turn off eventdns if win32 is set
- cleaned up tor_mmap_file()_win32 (not sure if it's stable)
- cleaned up some warnings and typos
svn:r8322
|
|
|
|
|
|
|
| |
Refactor connection_t into edge, or, dir, control, and base subtypes. This might save some RAM on busy exit servers, but really matters most in terms of correctness.
svn:r6906
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
circuit_t into origin_circuit_t and or_circuit_t. I fixed some
segaults; there may be more. We still need to move more rendezvous
stuff into subtypes.
This is a trial run for splitting up connection_t; if the approach is
insane, please say so soon so we can do something smarter.
Also, this discards the old HALF_OPEN code, which nobody seems to
want.
svn:r6817
|
|
|
|
|
|
|
|
|
|
|
| |
This happened when we got two create cells in a row from the same TLS
connection. It would hand one to the cpuworker, and then immediately
handle the second one -- after it had registered that the first one was
busy, but before it had updated the timestamp that we use to decide how
*long* it's been busy.
svn:r6606
|
|
|
|
|
|
|
|
|
|
| |
connection_add being called with socket = -1. The only places I can see
where that happen would be if our tor_socketpair succeeds but it hands
back negative values for some of its file descriptors. Perhaps this will
produce more useful assert errors next time.
svn:r6550
|
|
|
|
|
|
|
|
| |
This value is high because some servers with low memory/cpu
sometimes spend an hour or more swapping, and Tor starves.
svn:r6406
|
|
|
|
| |
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:r6020
|
|
|
|
|
|
|
| |
whee.
svn:r6003
|
|
|
|
| |
svn:r5949
|
|
|
|
| |
svn:r5734
|
|
|
|
| |
svn:r5654
|
|
|
|
|
|
| |
intended.
svn:r5582
|
|
|
|
| |
svn:r5339
|
|
|
|
|
|
|
|
| |
125000 circuit_t's after it had been up for a few weeks, which translates
to 20+ megs of wasted space.
svn:r5333
|
|
|
|
|
|
|
|
| |
clean up OpenSSL's toys when it's done playing. (Why isn't there an
OpenSSL_free_everything() function?)
svn:r5321
|
|
|
|
| |
svn:r5317
|
|
|
|
| |
svn:r5310
|
|
|
|
|
|
|
|
| |
logs in cases where a calling function's log was downgraded and we wouldn't
get any log message otherwise.
svn:r5263
|
|
|
|
|
|
|
| |
it handles it fine if we decide not to die.
svn:r5114
|
|
|
|
|
|
|
| |
will affect them.
svn:r4787
|
|
|
|
|
|
|
| |
out as a server.
svn:r4785
|
|
|
|
| |
svn:r4509
|
|
|
|
|
|
| |
function definition format uniform.
svn:r4411
|
|
|
|
| |
svn:r4404
|
|
|
|
| |
svn:r4382
|
|
|
|
| |
svn:r4378
|
|
|
|
| |
svn:r4184
|
|
|
|
| |
svn:r4173
|
|
|
|
|
|
| |
Watch out when we bump the version to 0.1.0.6-rc!
svn:r4162
|
|
|
|
| |
svn:r4100
|
|
|
|
|
|
| |
complain! Oh, wait...
svn:r4059
|
|
|
|
| |
svn:r4043
|
|
|
|
|
|
|
|
|
| |
stuck in the 'busy' state, even though the cpuworker process thinks of
itself as idle. I don't know why. But here's a workaround to kill any
cpuworker that's been busy for more than 100 seconds.
svn:r4042
|
|
|
|
|
|
|
|
| |
a conn on 0.0.0.0:0, then when we look through the connection array,
we'll find any of the workers. this is no good.
svn:r4027
|
|
|
|
|
|
| |
splay tree of (circid,orconn)->circuit mappings to make circuit_get_by_circid_conn much faster.
svn:r4020
|
|
|
|
| |
svn:r4009
|
|
|
|
|
|
| |
cpuworkers and dnsworkers.
svn:r4008
|
|
|
|
| |
svn:r3982
|
|
|
|
| |
svn:r3656
|
|
|
|
| |
svn:r3450
|
|
|
|
|
|
|
|
|
|
| |
until none are left, then we try to refetch the descriptor. If it's
the same one we had before, then close streams right then. Whenever
a new stream arrives, even if it's right after, optimistically try
refetching the descriptor, just in case.
svn:r3379
|
|
|
|
|
|
| |
connections. "Error: Success!" makes us seem like crazy people."
svn:r3373
|
|
|
|
| |
svn:r3251
|
|
|
|
|
|
| |
(currently only windows), threads should not close opposite sides of their socketpairs, and workers should not call connection_free_all(). This may fix win32 servers.
svn:r3247
|
|
|
|
|
|
| |
multithreaded, leave parent fdarray open.
svn:r3092
|