| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
When logging memory usage, break down memory used in buffers by buffer type.
svn:r10004
|
|
|
|
|
|
|
| |
Rename a couple of confusing fields
svn:r9996
|
|
|
|
|
|
|
| |
Initial version of code to stop using socket pairs for linked connections. Superficially, it seems to work, but it probably needs a lot more testing and attention.
svn:r9995
|
|
|
|
|
|
|
| |
Track the number of connection_t separately from the number of open sockets. It is already possible to have connections that do not count: resolving conns, for one. Once we move from socketpairs to linked conns, and once we do dns proxying, there will be lots of such connections.
svn:r9994
|
|
|
|
|
|
|
| |
A surprisingly simple patch to stop reading on edge connections when their circuits get too full, and start again when they empty out. This lets us remove the logic to block begin_dir conns when the corresponding or conns get full: it was already broken by cell queues anyway.
svn:r9905
|
|
|
|
|
|
|
| |
Refactor a bunch of functions that take edge_connection_t not to also take a crypt_path_t; the cpath is implicit.
svn:r9899
|
|
|
|
|
|
|
|
| |
because we have no way of remembering what their purpose was when
we restart.
svn:r9894
|
|
|
|
|
|
|
|
| |
stricter rate limiting to all OR conns except those that have
been touched by local circuits.
svn:r9882
|
|
|
|
|
|
|
| |
now that's just defined as answers to directory requests.
svn:r9881
|
|
|
|
|
|
|
| |
Remove dnsworkers and related code. there goes another 550 lines of code.
svn:r9736
|
|
|
|
|
|
|
| |
Remove support for v0 control protocol from 0.2.0.x trunk; send back error when we receive a v0 control message. (Leave "if(v1){...}"blocks indented for now so this patch is easier to read.) ((Finally, the linecount goes _down_ a little.))
svn:r9735
|
|
|
|
|
|
|
| |
Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.)
svn:r9733
|
|
|
|
|
|
|
| |
Fix connection_get_by_type_state_rendquery(): This has been bogus for most of 0.1.2.x. Thanks to Karsten Loesing for finding the bug; fixes bug 399.
svn:r9651
|
|
|
|
|
|
|
| |
Tweak stream_bw patch: Remove a couple of redundant checks, save 8 bytes per edge connection, fix spelling in the changelog; expand spec.
svn:r9586
|
|
|
|
|
|
|
| |
Apply stream_bw patch from Robert Hogan.
svn:r9585
|
|
|
|
|
|
|
| |
Update copyright dates.
svn:r9570
|
|
|
|
| |
svn:r9552
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Resolve some XXXX012 items:
- Remove PathlenCoinWeight: if we want it again, we can add it
back in.
- Ditto with RelayBandwidth*.
- Decide to leave in the "hey, you didn't set end_reason!" BUG log message,
but stop telling people to bug me personally.
- Postpone strengthening assert_connection_ok(): it's important, but
it's also a good way to introduce weird bugs.
- Move some expensive consistency checking from dns_free_all() into
assert_cache_ok().
svn:r9533
|
|
|
|
|
|
|
| |
Update assert_connection_ok() to match the "block tunnelled dir conn if the or conn is full" logic. This may fix bug 385.
svn:r9479
|
|
|
|
|
|
|
| |
Audit non-const char arguments; make a lot more of them const.
svn:r9466
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This one is a little tricky. Our BEGIN_DIR implementation has a
problem: the dirserv conns will decide they can flush all their data
immediately, since the edge_conns will read greedily.
For our 0.1.2 workaround, we track which or_conn a bridged dirserv
conn is attached to, and stop writing when its outbuf is too full, and
start writing again when the or_conn's outbuf empties out a little.
This requires a bit of pointer management. Let's hope it works.
svn:r9432
|
|
|
|
|
|
|
| |
connection_is_rate_limited(). One day this will be useful.
svn:r9422
|
|
|
|
| |
svn:r9421
|
|
|
|
|
|
|
| |
Remove redundant check for whether _connection_write_to_buf_impl is called with a zlib and a non-directory connection: TO_DIR_CONN will already assert if it gets a non-dir connection.
svn:r9390
|
|
|
|
|
|
|
|
|
|
| |
writing to them, so we avoid queueing 4+ megabytes of data before
trying to flush.
Also add a new XXX012.
svn:r9382
|
|
|
|
|
|
|
|
| |
uptime in the descriptor. Also, don't let the global rate limiting
buckets go absurdly negative.
svn:r9377
|
|
|
|
| |
svn:r9369
|
|
|
|
|
|
|
| |
connections) even when the global rate limiting buckets are empty.
svn:r9368
|
|
|
|
|
|
|
|
|
|
| |
aggressively. my vidalia bandwidth graph, when rate limiting
to 32kB/s, has the "write" line constantly at 32kB. I can't
imagine what's going on with the relay latency but it can't
be good.
svn:r9366
|
|
|
|
|
|
|
| |
set or_conn->tls_error to 0 on non-error to avoid looking at stale errors.
svn:r9359
|
|
|
|
|
|
|
| |
Tidy up ORCONN reason patch from Mike Perry. Changes: make some of the handling of TLS error codes less error prone. Enforce house style wrt spaces. Make it compile with --enable-gcc-warnings. Only set or_conn->tls_error in the case of an actual error. Add a changelog entry.
svn:r9355
|
|
|
|
|
|
|
| |
Patch from Mike Perry: Track reasons for OR connection failure; display them in control events. Needs review and revision.
svn:r9354
|
|
|
|
|
|
|
| |
Fix an XXXX012 in connection.c: prevent overflows on unfeasibly-high-bandwidth servers on 32-bit architectures.
svn:r9282
|
|
|
|
| |
svn:r9271
|
|
|
|
| |
svn:r9269
|
|
|
|
|
|
|
| |
Refactor connection_write_to_buf_zlib back into connection_write_to_buf. Hooray for dumping duplicate code.
svn:r9209
|
|
|
|
|
|
|
| |
Refactor _connection_controller_force_write back into conncetion_handle_write. Again, the line count goes down: groovy!
svn:r9208
|
|
|
|
|
|
|
| |
Count TLS bytes accurately: previously, we counted only the number of bytes read or transmitted via tls, not the number of extra bytes used to do so. This has been a lonstanding wart. The fix "Works for me".
svn:r9207
|
|
|
|
|
|
|
| |
Mark a pile of XXXX comments as targetted for 0.1.2: some because they look important, some because they look easy.
svn:r9205
|
|
|
|
|
|
|
| |
Refactor and unify my-ip-addr-changed logic. Make change in IP address or in nameservers reset and relaunch DNS hijacking tests.
svn:r9200
|
|
|
|
|
|
|
|
|
| |
impact of directory writes now that we're write limiting.
a few more dead chickens remain.
svn:r9170
|
|
|
|
|
|
|
|
|
| |
a smart move.
more todo sub-items remain for it.
svn:r9101
|
|
|
|
| |
svn:r9093
|
|
|
|
|
|
|
| |
Merge circuit_about_to_close_connection and connection_about_to_close_connection.
svn:r9021
|
|
|
|
| |
svn:r9015
|
|
|
|
|
|
|
|
|
|
| |
Add support for (Free?)BSD's natd, which was an old way to let you
have your firewall automatically redirect traffic. (Original patch
from Zajcev Evgeny, updated for 0.1.2.x by tup.)
svn:r8946
|
|
|
|
|
|
|
| |
Patch from tup based on patch from Zajcev Evgeny: Make TransPort work even when the server wants to talk before the client.
svn:r8945
|
|
|
|
|
|
|
| |
Have connection_about_to_close use an end_reason field in edge_connection_t to tell what reason to tell the controller for closing the stream. Set end_reason in connection_edge_end, connection_mark_unattached_ap, and everwhere we set edge_has_sent_end. Add a changelog entry.
svn:r8779
|
|
|
|
|
|
|
| |
Start implementing reason extension for stream events to match the one one used by circuit events. (Not a complete implementation yet; actual reasons are not passed to control.c)
svn:r8777
|
|
|
|
| |
svn:r8620
|