aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Expand)AuthorAge
* 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
* be a bit less eager to reject v1 dir requests due to load•••svn:r9271 Roger Dingledine2007-01-05
* more progress and cleanups•••svn:r9269 Roger Dingledine2007-01-05
* r11744@Kushana: nickm | 2006-12-28 23:43:53 -0500••• Refactor connection_write_to_buf_zlib back into connection_write_to_buf. Hooray for dumping duplicate code. svn:r9209 Nick Mathewson2006-12-29
* r11743@Kushana: nickm | 2006-12-28 23:13:21 -0500••• Refactor _connection_controller_force_write back into conncetion_handle_write. Again, the line count goes down: groovy! svn:r9208 Nick Mathewson2006-12-29
* r11741@Kushana: nickm | 2006-12-28 22:41:29 -0500••• 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 Nick Mathewson2006-12-29
* r11736@Kushana: nickm | 2006-12-28 17:46:23 -0500••• Mark a pile of XXXX comments as targetted for 0.1.2: some because they look important, some because they look easy. svn:r9205 Nick Mathewson2006-12-29
* r11724@Kushana: nickm | 2006-12-28 14:22:35 -0500••• Refactor and unify my-ip-addr-changed logic. Make change in IP address or in nameservers reset and relaunch DNS hijacking tests. svn:r9200 Nick Mathewson2006-12-28
* reinstate the most important dead chickens for limiting•••impact of directory writes now that we're write limiting. a few more dead chickens remain. svn:r9170 Roger Dingledine2006-12-23
* reenable write limiting. nick finally convinced me this was•••a smart move. more todo sub-items remain for it. svn:r9101 Roger Dingledine2006-12-13
* minor cleanups and notes•••svn:r9093 Roger Dingledine2006-12-12
* r9855@Kushana: nickm | 2006-12-04 00:55:09 -0500••• Merge circuit_about_to_close_connection and connection_about_to_close_connection. svn:r9021 Nick Mathewson2006-12-04
* cleanups, bump to 0.1.2.4-alpha•••svn:r9015 Roger Dingledine2006-12-02
* r9308@totoro: nickm | 2006-11-13 18:41:23 -0500••• 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 Nick Mathewson2006-11-14
* r9307@totoro: nickm | 2006-11-13 18:25:56 -0500••• Patch from tup based on patch from Zajcev Evgeny: Make TransPort work even when the server wants to talk before the client. svn:r8945 Nick Mathewson2006-11-14
* r9307@Kushana: nickm | 2006-10-20 13:53:54 -0400••• 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 Nick Mathewson2006-10-20
* r9303@Kushana: nickm | 2006-10-20 12:07:34 -0400••• 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 Nick Mathewson2006-10-20
* bugfix and cleanups re: entry guards.•••svn:r8620 Roger Dingledine2006-10-06
* r8851@totoro: nickm | 2006-10-02 18:13:27 -0400••• Remove/clarify some XXXs for no longer being accurate; for begin things we do not indend to fix; for already being parts of big todo issues (like "/* XXX ipv6 */"); etc. Also fix some spaces. svn:r8580 Nick Mathewson2006-10-02
* r8846@totoro: nickm | 2006-10-02 16:59:57 -0400••• Move is_local_IP to config.c; have it check for same-/24; make it used only for reachability (not for banwidth, because that is probably not what we want). Fixes an XXX. svn:r8578 Nick Mathewson2006-10-02
* misc touchups•••svn:r8568 Roger Dingledine2006-10-01
* r9036@Kushana: nickm | 2006-09-29 18:59:51 -0400••• I am glad that arma reviews my patches. svn:r8546 Nick Mathewson2006-09-29
* r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400••• Differentiate more duplicated log entries svn:r8542 Nick Mathewson2006-09-29
* r9023@Kushana: nickm | 2006-09-29 17:27:24 -0400••• Make distinct all non-bug messages at notice or higher that appear 3 or more times. svn:r8541 Nick Mathewson2006-09-29
* r8973@Kushana: nickm | 2006-09-28 16:53:19 -0400••• Refactor entry guard status logic a lot; allow more factors [like not having a Guard flag or being listed in ExcludeNodes] to render a guard "unlisted" (now called "unusable"); track guard down status (now called "unreachable") separately from is_running. svn:r8519 Nick Mathewson2006-09-28
* parameterize the loudness of get_interface_address()•••svn:r8358 Roger Dingledine2006-09-09
* simplify the connection_write_to_buf_zlib() wrapper.•••svn:r7042 Roger Dingledine2006-08-13
* r7299@Kushana: nickm | 2006-08-10 01:08:58 -0700••• Patch from Tup to add support for transparent AP connections: this basically bundles the functionality of trans-proxy-tor into the tor mainline. Now hosts with compliant pf/netfilter implementations can redirect TCP connections straight to Tor without diverting through SOCKS. svn:r7007 Nick Mathewson2006-08-10
* r6949@Kushana: nickm | 2006-07-28 10:17:38 -0400••• Shave another 8 bytes from connection_t: turn inbuf_reached_eof into a bit, and lower timestamp_lastempty to or_connection_t svn:r6934 Nick Mathewson2006-07-28
* r6948@Kushana: nickm | 2006-07-28 10:10:35 -0400••• Identify some likely target fields for lowering; lower global_identifier (since we only use it for AP streams and origin circs). svn:r6933 Nick Mathewson2006-07-28
* r6922@Kushana: nickm | 2006-07-26 16:32:24 -0400••• Rename some fields, compress a bitfield, and document some structs and fields svn:r6919 Nick Mathewson2006-07-27
* Fix comments that implied that only dir connections had a purpose field, and ...•••svn:r6918 Nick Mathewson2006-07-27
* r6909@Kushana: nickm | 2006-07-26 13:05:58 -0400••• Clean up wide lines from last patch. svn:r6907 Nick Mathewson2006-07-26
* r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400••• 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 Nick Mathewson2006-07-26
* tweak•••svn:r6795 Roger Dingledine2006-07-20
* when an exit node gets a malformed begin cell, don't complain to•••the node operator, since he can't do anything about it. svn:r6733 Roger Dingledine2006-07-06