Age | Commit message (Collapse) | Author |
|
Keep track, for each OR connection, of the last time we added a non-padding cell to its outbuf. Use this timestamp, not "lastwritten" to tell if it is time to close a circuitless connection. (We can'tuse lastwritten, since lastwritten is updated when ever the connection flushes anything, and by that point we can no longer tell what is a padding cell and what is not.)
svn:r12437
|
|
Improve "tls error. breaking" message a little.
svn:r12411
|
|
Also avoid overflow on or_conn->read_bucket
svn:r12401
|
|
Fix bug 544: do not allow buckets to overflow. Backportable.
svn:r12400
|
|
Split handshake state into its own structure. Revise versions and netinfo code to use this structure.
svn:r12380
|
|
svn:r11890
|
|
Fix bug 451. This was a nasty bug, so let's fix it twice: first, by banning recursive calls to connection_handle_write from connection_flushed_some; and second, by not calling connection_finished_flushing() on a closed connection. Backport candidate.
svn:r11882
|
|
they happen whenever we fail to establish a connection.
svn:r11854
|
|
Fix bug 483: downgrade a harmless "Hey your accept() implementation sucks" warning to an info.
svn:r11828
|
|
Make some functions static; remove some dead code.
svn:r11750
|
|
Add debugging warning to not abort in the case of bug 483. This is probably not an actual error case, so we should figure out what is really causing it and do something more sensible.
svn:r11215
|
|
Compile without warnings on MinGW, even with --enable-gcc-warnings enabled.
svn:r11157
|
|
Try to call time(NULL) a little less.
svn:r10980
|
|
traffic when RelayBandwidthRate is set. (Refines proposal 111.)
svn:r10974
|
|
Patch from Robert Hogan: set conn->dns_server_port correctly so that we can close dns server ports when they change, thus avoiding crashes and dangling references and other sources of unhappiness.
svn:r10933
|
|
Tweaks on constrained socket buffers patch from coderman: Add a changelog; rename some variables; fix some long lines and whitespace; make ConstrainedSockSize a memunit; pass setsockopt a void.
svn:r10843
|
|
Initial "constrained socket buffers" patch from coderman. needs tweaking.
svn:r10842
|
|
svn:r10829
|
|
Arg. Irix apparently #defines sa_family to something. Thus, naming fields or variables "sa_family" will not work.
svn:r10541
|
|
Remove some deadcode that seems unlikely to return
svn:r10509
|
|
Patch from peter palfrader: control interface via unix domain socket
svn:r10504
|
|
svn:r10495
|
|
We are smarter than comparing lengths of want- and have-listeners.
svn:r10487
|
|
always was 0.
svn:r10486
|
|
Patch from robert hogan: avoid crash when DNS port is set more than once.
svn:r10471
|
|
Move connection_should_read_from_linked_conn into main.c, which is the only file that uses it.
svn:r10394
|
|
Resolve all but 3 DOCDOCs.
svn:r10393
|
|
svn:r10335
|
|
whether we have a connection open to the server right now.
svn:r10333
|
|
Well, that was easier than I thought it would be. Tor is now a DNS proxy as well as a socks proxy. Probably some bugs remain, but since it A) has managed to resolve one address for me successfully, and B) will not affect anybody who leaves DNSPort unset, it feel like a good time to commit.
svn:r10317
|
|
Make connection_array into a smartlist.
svn:r10292
|
|
Fix GCC warnings related to local parameters/variables getting shadowed.
svn:r10198
|
|
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
|