aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Expand)AuthorAge
* r13774@catbus: nickm | 2007-07-16 12:23:28 -0400••• 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 Nick Mathewson2007-07-16
* r13773@catbus: nickm | 2007-07-16 11:58:25 -0400••• Initial "constrained socket buffers" patch from coderman. needs tweaking. svn:r10842 Nick Mathewson2007-07-16
* fix a memory leak from r10504 (i think)•••svn:r10829 Roger Dingledine2007-07-15
* r13328@catbus: nickm | 2007-06-08 17:14:55 -0400••• Arg. Irix apparently #defines sa_family to something. Thus, naming fields or variables "sa_family" will not work. svn:r10541 Nick Mathewson2007-06-08
* r13274@catbus: nickm | 2007-06-05 19:06:30 -0400••• Remove some deadcode that seems unlikely to return svn:r10509 Nick Mathewson2007-06-06
* r13266@catbus: nickm | 2007-06-05 16:38:08 -0400••• Patch from peter palfrader: control interface via unix domain socket svn:r10504 Nick Mathewson2007-06-05
* Change an assert into a tor_assert•••svn:r10495 Peter Palfrader2007-06-05
* Fix retry_all_listeners() and retry_listeners() description to match code. W...•••svn:r10487 Peter Palfrader2007-06-04
* Remove force flag from retry_all_listeners() and retry_listeners(). It alway...•••svn:r10486 Peter Palfrader2007-06-04
* r13174@catbus: nickm | 2007-06-03 17:39:20 -0400••• Patch from robert hogan: avoid crash when DNS port is set more than once. svn:r10471 Nick Mathewson2007-06-03
* r13053@catbus: nickm | 2007-05-29 13:35:33 -0400••• Move connection_should_read_from_linked_conn into main.c, which is the only file that uses it. svn:r10394 Nick Mathewson2007-05-29
* r13050@catbus: nickm | 2007-05-29 13:31:11 -0400••• Resolve all but 3 DOCDOCs. svn:r10393 Nick Mathewson2007-05-29
* polish r9933-r9994•••svn:r10335 Roger Dingledine2007-05-25
* remove an obsolete notion that we judge runningness based on•••whether we have a connection open to the server right now. svn:r10333 Roger Dingledine2007-05-25
* r12942@catbus: nickm | 2007-05-24 16:31:22 -0400••• 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 Nick Mathewson2007-05-24
* r12853@catbus: nickm | 2007-05-22 11:36:54 -0400••• Make connection_array into a smartlist. svn:r10292 Nick Mathewson2007-05-22
* r12768@catbus: nickm | 2007-05-16 17:25:33 -0400••• Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198 Nick Mathewson2007-05-16
* r12496@catbus: nickm | 2007-04-22 23:04:05 -0400••• When logging memory usage, break down memory used in buffers by buffer type. svn:r10004 Nick Mathewson2007-04-23
* r12482@catbus: nickm | 2007-04-21 13:30:24 -0400••• Rename a couple of confusing fields svn:r9996 Nick Mathewson2007-04-21
* r12763@Kushana: nickm | 2007-04-20 18:42:58 -0400••• 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 Nick Mathewson2007-04-21
* r12759@Kushana: nickm | 2007-04-20 08:47:20 -0400••• 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 Nick Mathewson2007-04-21
* r12652@Kushana: nickm | 2007-03-25 15:01:48 -0400••• 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 Nick Mathewson2007-03-26
* r12643@0-41-wifi: nickm | 2007-03-23 14:56:35 -0400••• Refactor a bunch of functions that take edge_connection_t not to also take a crypt_path_t; the cpath is implicit. svn:r9899 Nick Mathewson2007-03-24
* Don't save non-general-purpose router descriptors to the disk cache,•••because we have no way of remembering what their purpose was when we restart. svn:r9894 Roger Dingledine2007-03-21
* a stopgap measure while we wait for proposal 111: apply the•••stricter rate limiting to all OR conns except those that have been touched by local circuits. svn:r9882 Roger Dingledine2007-03-20
* Add a separate set of token buckets for relayed traffic. Right•••now that's just defined as answers to directory requests. svn:r9881 Roger Dingledine2007-03-20
* r12080@catbus: nickm | 2007-03-04 21:40:55 -0500••• Remove dnsworkers and related code. there goes another 550 lines of code. svn:r9736 Nick Mathewson2007-03-05
* r12077@catbus: nickm | 2007-03-04 16:08:23 -0500••• 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 Nick Mathewson2007-03-04
* r12074@catbus: nickm | 2007-03-04 15:11:43 -0500••• 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 Nick Mathewson2007-03-04
* r11942@catbus: nickm | 2007-02-25 11:22:12 -0500••• 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 Nick Mathewson2007-02-25
* r11813@catbus: nickm | 2007-02-14 11:42:58 -0500••• 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 Nick Mathewson2007-02-14
* r11812@catbus: nickm | 2007-02-14 11:22:08 -0500••• Apply stream_bw patch from Robert Hogan. svn:r9585 Nick Mathewson2007-02-14
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500••• Update copyright dates. svn:r9570 Nick Mathewson2007-02-12
* more useful log messages when we give up on a stream•••svn:r9552 Roger Dingledine2007-02-11
* r11726@catbus: nickm | 2007-02-08 16:04:53 -0500••• 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 Nick Mathewson2007-02-08
* r12129@Kushana: nickm | 2007-02-03 09:57:36 -0500••• 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 Nick Mathewson2007-02-03
* r11607@catbus: nickm | 2007-01-30 17:19:27 -0500••• Audit non-const char arguments; make a lot more of them const. svn:r9466 Nick Mathewson2007-01-30
* r11552@catbus: nickm | 2007-01-27 03:55:02 -0500••• 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 Nick Mathewson2007-01-27
* Stop saying !is_internal_IP() when we really meant•••connection_is_rate_limited(). One day this will be useful. svn:r9422 Roger Dingledine2007-01-26
* never refuse directory requests from local addresses•••svn:r9421 Roger Dingledine2007-01-26
* r9727@catbus: nickm | 2007-01-22 16:12:39 -0500••• 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 Nick Mathewson2007-01-23
* Flush local controller connection buffers periodically as we're•••writing to them, so we avoid queueing 4+ megabytes of data before trying to flush. Also add a new XXX012. svn:r9382 Roger Dingledine2007-01-22
* If our system clock jumps back in time, don't publish a negative•••uptime in the descriptor. Also, don't let the global rate limiting buckets go absurdly negative. svn:r9377 Roger Dingledine2007-01-21
* man, i could have sworn that compiled•••svn:r9369 Roger Dingledine2007-01-18
* Be willing to read or write on local connections (e.g. controller•••connections) even when the global rate limiting buckets are empty. svn:r9368 Roger Dingledine2007-01-18
* break out the big guns: reject dir requests much more•••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 Roger Dingledine2007-01-17
* r11975@Kushana: nickm | 2007-01-15 17:11:15 -0500••• set or_conn->tls_error to 0 on non-error to avoid looking at stale errors. svn:r9359 Nick Mathewson2007-01-15
* r11966@Kushana: nickm | 2007-01-15 16:12:17 -0500••• 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 Nick Mathewson2007-01-15
* r11957@Kushana: nickm | 2007-01-15 15:25:57 -0500••• Patch from Mike Perry: Track reasons for OR connection failure; display them in control events. Needs review and revision. svn:r9354 Nick Mathewson2007-01-15
* r11864@Kushana: nickm | 2007-01-06 01:25:59 -0500••• Fix an XXXX012 in connection.c: prevent overflows on unfeasibly-high-bandwidth servers on 32-bit architectures. svn:r9282 Nick Mathewson2007-01-06