aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Collapse)AuthorAge
* r12496@catbus: nickm | 2007-04-22 23:04:05 -0400Nick Mathewson2007-04-23
| | | | | | | When logging memory usage, break down memory used in buffers by buffer type. svn:r10004
* r12482@catbus: nickm | 2007-04-21 13:30:24 -0400Nick Mathewson2007-04-21
| | | | | | | Rename a couple of confusing fields svn:r9996
* r12763@Kushana: nickm | 2007-04-20 18:42:58 -0400Nick Mathewson2007-04-21
| | | | | | | 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
* r12759@Kushana: nickm | 2007-04-20 08:47:20 -0400Nick Mathewson2007-04-21
| | | | | | | 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
* r12652@Kushana: nickm | 2007-03-25 15:01:48 -0400Nick Mathewson2007-03-26
| | | | | | | 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
* r12643@0-41-wifi: nickm | 2007-03-23 14:56:35 -0400Nick Mathewson2007-03-24
| | | | | | | Refactor a bunch of functions that take edge_connection_t not to also take a crypt_path_t; the cpath is implicit. svn:r9899
* Don't save non-general-purpose router descriptors to the disk cache,Roger Dingledine2007-03-21
| | | | | | | | because we have no way of remembering what their purpose was when we restart. svn:r9894
* a stopgap measure while we wait for proposal 111: apply theRoger Dingledine2007-03-20
| | | | | | | | stricter rate limiting to all OR conns except those that have been touched by local circuits. svn:r9882
* Add a separate set of token buckets for relayed traffic. RightRoger Dingledine2007-03-20
| | | | | | | now that's just defined as answers to directory requests. svn:r9881
* r12080@catbus: nickm | 2007-03-04 21:40:55 -0500Nick Mathewson2007-03-05
| | | | | | | Remove dnsworkers and related code. there goes another 550 lines of code. svn:r9736
* r12077@catbus: nickm | 2007-03-04 16:08:23 -0500Nick Mathewson2007-03-04
| | | | | | | 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
* r12074@catbus: nickm | 2007-03-04 15:11:43 -0500Nick Mathewson2007-03-04
| | | | | | | 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
* r11942@catbus: nickm | 2007-02-25 11:22:12 -0500Nick Mathewson2007-02-25
| | | | | | | 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
* r11813@catbus: nickm | 2007-02-14 11:42:58 -0500Nick Mathewson2007-02-14
| | | | | | | 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
* r11812@catbus: nickm | 2007-02-14 11:22:08 -0500Nick Mathewson2007-02-14
| | | | | | | Apply stream_bw patch from Robert Hogan. svn:r9585
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* more useful log messages when we give up on a streamRoger Dingledine2007-02-11
| | | | svn:r9552
* r11726@catbus: nickm | 2007-02-08 16:04:53 -0500Nick Mathewson2007-02-08
| | | | | | | | | | | | | | | | 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
* r12129@Kushana: nickm | 2007-02-03 09:57:36 -0500Nick Mathewson2007-02-03
| | | | | | | 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
* r11607@catbus: nickm | 2007-01-30 17:19:27 -0500Nick Mathewson2007-01-30
| | | | | | | Audit non-const char arguments; make a lot more of them const. svn:r9466
* r11552@catbus: nickm | 2007-01-27 03:55:02 -0500Nick Mathewson2007-01-27
| | | | | | | | | | | | | | | | 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
* Stop saying !is_internal_IP() when we really meantRoger Dingledine2007-01-26
| | | | | | | connection_is_rate_limited(). One day this will be useful. svn:r9422
* never refuse directory requests from local addressesRoger Dingledine2007-01-26
| | | | svn:r9421
* r9727@catbus: nickm | 2007-01-22 16:12:39 -0500Nick Mathewson2007-01-23
| | | | | | | 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
* Flush local controller connection buffers periodically as we'reRoger Dingledine2007-01-22
| | | | | | | | | | writing to them, so we avoid queueing 4+ megabytes of data before trying to flush. Also add a new XXX012. svn:r9382
* If our system clock jumps back in time, don't publish a negativeRoger Dingledine2007-01-21
| | | | | | | | uptime in the descriptor. Also, don't let the global rate limiting buckets go absurdly negative. svn:r9377
* man, i could have sworn that compiledRoger Dingledine2007-01-18
| | | | svn:r9369
* Be willing to read or write on local connections (e.g. controllerRoger Dingledine2007-01-18
| | | | | | | connections) even when the global rate limiting buckets are empty. svn:r9368
* break out the big guns: reject dir requests much moreRoger Dingledine2007-01-17
| | | | | | | | | | 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
* r11975@Kushana: nickm | 2007-01-15 17:11:15 -0500Nick Mathewson2007-01-15
| | | | | | | set or_conn->tls_error to 0 on non-error to avoid looking at stale errors. svn:r9359
* r11966@Kushana: nickm | 2007-01-15 16:12:17 -0500Nick Mathewson2007-01-15
| | | | | | | 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
* r11957@Kushana: nickm | 2007-01-15 15:25:57 -0500Nick Mathewson2007-01-15
| | | | | | | Patch from Mike Perry: Track reasons for OR connection failure; display them in control events. Needs review and revision. svn:r9354
* r11864@Kushana: nickm | 2007-01-06 01:25:59 -0500Nick Mathewson2007-01-06
| | | | | | | Fix an XXXX012 in connection.c: prevent overflows on unfeasibly-high-bandwidth servers on 32-bit architectures. svn:r9282
* be a bit less eager to reject v1 dir requests due to loadRoger Dingledine2007-01-05
| | | | svn:r9271
* more progress and cleanupsRoger Dingledine2007-01-05
| | | | svn:r9269
* r11744@Kushana: nickm | 2006-12-28 23:43:53 -0500Nick Mathewson2006-12-29
| | | | | | | Refactor connection_write_to_buf_zlib back into connection_write_to_buf. Hooray for dumping duplicate code. svn:r9209
* r11743@Kushana: nickm | 2006-12-28 23:13:21 -0500Nick Mathewson2006-12-29
| | | | | | | Refactor _connection_controller_force_write back into conncetion_handle_write. Again, the line count goes down: groovy! svn:r9208
* r11741@Kushana: nickm | 2006-12-28 22:41:29 -0500Nick Mathewson2006-12-29
| | | | | | | 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
* r11736@Kushana: nickm | 2006-12-28 17:46:23 -0500Nick Mathewson2006-12-29
| | | | | | | Mark a pile of XXXX comments as targetted for 0.1.2: some because they look important, some because they look easy. svn:r9205
* r11724@Kushana: nickm | 2006-12-28 14:22:35 -0500Nick Mathewson2006-12-28
| | | | | | | Refactor and unify my-ip-addr-changed logic. Make change in IP address or in nameservers reset and relaunch DNS hijacking tests. svn:r9200
* reinstate the most important dead chickens for limitingRoger Dingledine2006-12-23
| | | | | | | | | impact of directory writes now that we're write limiting. a few more dead chickens remain. svn:r9170
* reenable write limiting. nick finally convinced me this wasRoger Dingledine2006-12-13
| | | | | | | | | a smart move. more todo sub-items remain for it. svn:r9101
* minor cleanups and notesRoger Dingledine2006-12-12
| | | | svn:r9093
* r9855@Kushana: nickm | 2006-12-04 00:55:09 -0500Nick Mathewson2006-12-04
| | | | | | | Merge circuit_about_to_close_connection and connection_about_to_close_connection. svn:r9021
* cleanups, bump to 0.1.2.4-alphaRoger Dingledine2006-12-02
| | | | svn:r9015
* r9308@totoro: nickm | 2006-11-13 18:41:23 -0500Nick Mathewson2006-11-14
| | | | | | | | | | 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
* r9307@totoro: nickm | 2006-11-13 18:25:56 -0500Nick Mathewson2006-11-14
| | | | | | | Patch from tup based on patch from Zajcev Evgeny: Make TransPort work even when the server wants to talk before the client. svn:r8945
* r9307@Kushana: nickm | 2006-10-20 13:53:54 -0400Nick Mathewson2006-10-20
| | | | | | | 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
* r9303@Kushana: nickm | 2006-10-20 12:07:34 -0400Nick Mathewson2006-10-20
| | | | | | | 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
* bugfix and cleanups re: entry guards.Roger Dingledine2006-10-06
| | | | svn:r8620