aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Expand)AuthorAge
* 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
* Make connection_write_to_buf_zlib set outbuf_flushlen right.•••svn:r6651 Nick Mathewson2006-06-18
* write_to_buf != connection_write_to_buf. Also, add a connection_write_to_buf...•••svn:r6650 Nick Mathewson2006-06-18
* Instead of adding servers and v1 directories to buffers en masse, directory s...•••svn:r6641 Nick Mathewson2006-06-18
* re-enable per-connection rate limiting. get rid of the "OP bandwidth"•••concept. lay groundwork for "bandwidth classes" -- separate global buckets that apply depending on what sort of conn it is. svn:r6563 Roger Dingledine2006-06-07
* simplify code now that libevent considers all sockets pollable.•••what we really mean now is ">= 0", which is clearer to test for. svn:r6543 Roger Dingledine2006-06-05
* Add a new warning to our "warn a lot" list: unused parameters. This means we...•••svn:r6532 Nick Mathewson2006-06-04
* connection_t kept the identity_pkey but all it did was store it and•••free it. perhaps we don't need it after all? svn:r6518 Roger Dingledine2006-05-30
* forward-port the ORPort==0 patch•••svn:r6430 Roger Dingledine2006-05-03
* bugfix: when we fail to bind or listen on an incoming or outgoing•••socket, we should close it before failing. otherwise we just leak it. (thanks to weasel for finding.) svn:r6284 Roger Dingledine2006-04-01
* Allow non-printable characters for exit streams (both for•••connecting and for resolving). Now we tolerate applications that don't follow the RFCs. But continue to block malformed names at the socks side. svn:r6193 Roger Dingledine2006-03-19
* auth dir servers were only modifying a server's is_running field•••when they created a network status. so if nobody asked for a network status, they would never discover that any servers are is_running, so they could never build a circuit. svn:r6183 Roger Dingledine2006-03-18
* More cleanups noticed by weasel; also, remove macros that nobody uses.•••svn:r6143 Nick Mathewson2006-03-12
* start using OR_CONN_EVENT_NEW.•••also fixes a seg fault in tor (bug 261). svn:r6101 Roger Dingledine2006-03-08
* Add some functions to escape values from the network before sending them to t...•••svn:r6087 Nick Mathewson2006-03-05
* more log conversions.•••whee. svn:r6003 Roger Dingledine2006-02-13
* Let the users set ControlListenAddress in the torrc.•••This can be dangerous, but there are some cases (like a secured LAN) where it makes sense. svn:r5997 Roger Dingledine2006-02-13
* enforce whitespace style•••svn:r5984 Nick Mathewson2006-02-12
* When a client asks for an old-style directory and our write bucket•••is empty, don't give it to him. This way small servers can continue to serve the directory *sometimes*, without getting overloaded. svn:r5968 Roger Dingledine2006-02-11
* Happy new year!•••svn:r5949 Roger Dingledine2006-02-09
* and make sure that never happens again•••svn:r5932 Roger Dingledine2006-02-09
* char *x = "y"; is not good C.•••svn:r5926 Nick Mathewson2006-02-06
* Fix a major load balance bug: we were round-robining in 16 KB chunks, and•••servers with bandwidthrate of 20 KB, while downloading a 600 KB directory, would starve their other connections. Now we try to be a bit more fair. svn:r5906 Roger Dingledine2006-02-04
* when we fail to bind a listener, try to provide a more useful log msg.•••svn:r5900 Roger Dingledine2006-02-03
* attempted patch for bug 220: don't assert when we've tried all the•••intro points for a hidden service and we try fetching the service descriptor again. svn:r5838 Roger Dingledine2006-01-17
* entry nodes are now entry guards.•••this is our last easy chance for a wholesale change. heave ho. svn:r5782 Roger Dingledine2006-01-10
* fix typo•••svn:r5750 Roger Dingledine2006-01-07
* Add reasons to DESTROY and RELAY_TRUNCATED cells.•••svn:r5734 Nick Mathewson2006-01-05
* fix a wrong string•••svn:r5733 Roger Dingledine2006-01-05
* helper nodes are dead. long live entry nodes.•••(config options EntryNodes and StrictEntryNodes still not implemented.) svn:r5673 Roger Dingledine2005-12-28
* fix typo•••svn:r5667 Roger Dingledine2005-12-27
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ...•••svn:r5582 Nick Mathewson2005-12-14
* when we changed from log_fn to debug/info/notice/warn/err,•••we screwed up the formatting in wild and unpredictable ways. fix it before it becomes convention to format logs in wild and unpredictable ways. still need to do src/common/ someday. svn:r5551 Roger Dingledine2005-12-10
* Change how OR conns get removed from the identity map; fix some warnings on s...•••svn:r5509 Nick Mathewson2005-12-05
* Move connection_or_remove_from_identity_map() to connection_unlink, but dont ...•••svn:r5470 Nick Mathewson2005-11-30
* Rename connection_get_by_identity_digest to reflect that it is OR-only. Make...•••svn:r5469 Nick Mathewson2005-11-30
* "How about 'never'? Does 'never' work for you?"•••Weasel says circuit_get_by_conn is his main timesink. Most of its users were just checking whether OR conns had circuits, so add a circuit count to OR conns, and check that. One was circuit_about_to_close_conn, which was doing an O(n^2) series of calls to get all circs on an OR conn, so make an O(n) function for that. Finally, circuit_get_by_edge_conn was using it as a sanity test that has been around for a while but never found any actualy insanity, so kill that. circuit_get_by_conn is finally dead, which is good, since it was never sane to begin with. svn:r5460 Nick Mathewson2005-11-26
* Cut down a common call to circuit_get_by_conn by about half.•••svn:r5459 Nick Mathewson2005-11-26
* when calling connection_get_by_identity_digest, don't do a memcmp•••for non-OR conns. this should save a bit of time. svn:r5456 Roger Dingledine2005-11-25
* Recover better from TCP connections to Tor servers that are broken but•••don't tell you (it happens!); and rotate TLS connections once a week. 1) If an OR conn becomes more than a week old, make it obsolete. 2) If it's obsolete and empty, kill it. 3) When an OR makes a second connection to you, allow it. 4) If we want to send a new create cell, but the best conn we've got is obsolete, and the router is 0.1.1.9-alpha-cvs or later, ask for a new conn instead. 5) When we time out on circuit building on the first hop, make that connection obsolete. svn:r5429 Roger Dingledine2005-11-19
* and another overly common log entry•••svn:r5417 Roger Dingledine2005-11-18
* simplify a log entry•••svn:r5353 Roger Dingledine2005-11-11
* fix a signed/unsigned warning•••svn:r5344 Nick Mathewson2005-11-01