aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Collapse)AuthorAge
* tweakRoger Dingledine2006-07-20
| | | | svn:r6795
* when an exit node gets a malformed begin cell, don't complain toRoger Dingledine2006-07-06
| | | | | | | the node operator, since he can't do anything about it. svn:r6733
* Make connection_write_to_buf_zlib set outbuf_flushlen right.Nick Mathewson2006-06-18
| | | | svn:r6651
* write_to_buf != connection_write_to_buf. Also, add a ↵Nick Mathewson2006-06-18
| | | | | | connection_write_to_buf_zlib wrapper that sucks. svn:r6650
* Instead of adding servers and v1 directories to buffers en masse, directory ↵Nick Mathewson2006-06-18
| | | | | | servers add them on the fly as their outbufs are depleted. This will save ram on busy dirservers. svn:r6641
* re-enable per-connection rate limiting. get rid of the "OP bandwidth"Roger Dingledine2006-06-07
| | | | | | | | concept. lay groundwork for "bandwidth classes" -- separate global buckets that apply depending on what sort of conn it is. svn:r6563
* simplify code now that libevent considers all sockets pollable.Roger Dingledine2006-06-05
| | | | | | | what we really mean now is ">= 0", which is clearer to test for. svn:r6543
* Add a new warning to our "warn a lot" list: unused parameters. This means ↵Nick Mathewson2006-06-04
| | | | | | we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.) svn:r6532
* connection_t kept the identity_pkey but all it did was store it andRoger Dingledine2006-05-30
| | | | | | | free it. perhaps we don't need it after all? svn:r6518
* forward-port the ORPort==0 patchRoger Dingledine2006-05-03
| | | | svn:r6430
* bugfix: when we fail to bind or listen on an incoming or outgoingRoger Dingledine2006-04-01
| | | | | | | | socket, we should close it before failing. otherwise we just leak it. (thanks to weasel for finding.) svn:r6284
* Allow non-printable characters for exit streams (both forRoger Dingledine2006-03-19
| | | | | | | | | 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
* auth dir servers were only modifying a server's is_running fieldRoger Dingledine2006-03-18
| | | | | | | | | 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
* More cleanups noticed by weasel; also, remove macros that nobody uses.Nick Mathewson2006-03-12
| | | | svn:r6143
* start using OR_CONN_EVENT_NEW.Roger Dingledine2006-03-08
| | | | | | | also fixes a seg fault in tor (bug 261). svn:r6101
* Add some functions to escape values from the network before sending them to ↵Nick Mathewson2006-03-05
| | | | | | the log. Use them everywhere except for routerinfo->plaftorm, routerinfo->contact_info, and rend*.c. (need sleep now) svn:r6087
* more log conversions.Roger Dingledine2006-02-13
| | | | | | | whee. svn:r6003
* Let the users set ControlListenAddress in the torrc.Roger Dingledine2006-02-13
| | | | | | | | This can be dangerous, but there are some cases (like a secured LAN) where it makes sense. svn:r5997
* enforce whitespace styleNick Mathewson2006-02-12
| | | | svn:r5984
* When a client asks for an old-style directory and our write bucketRoger Dingledine2006-02-11
| | | | | | | | is empty, don't give it to him. This way small servers can continue to serve the directory *sometimes*, without getting overloaded. svn:r5968
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* and make sure that never happens againRoger Dingledine2006-02-09
| | | | svn:r5932
* char *x = "y"; is not good C.Nick Mathewson2006-02-06
| | | | svn:r5926
* Fix a major load balance bug: we were round-robining in 16 KB chunks, andRoger Dingledine2006-02-04
| | | | | | | | 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
* when we fail to bind a listener, try to provide a more useful log msg.Roger Dingledine2006-02-03
| | | | svn:r5900
* attempted patch for bug 220: don't assert when we've tried all theRoger Dingledine2006-01-17
| | | | | | | | intro points for a hidden service and we try fetching the service descriptor again. svn:r5838
* entry nodes are now entry guards.Roger Dingledine2006-01-10
| | | | | | | this is our last easy chance for a wholesale change. heave ho. svn:r5782
* fix typoRoger Dingledine2006-01-07
| | | | svn:r5750
* Add reasons to DESTROY and RELAY_TRUNCATED cells.Nick Mathewson2006-01-05
| | | | svn:r5734
* fix a wrong stringRoger Dingledine2006-01-05
| | | | svn:r5733
* helper nodes are dead. long live entry nodes.Roger Dingledine2005-12-28
| | | | | | | | (config options EntryNodes and StrictEntryNodes still not implemented.) svn:r5673
* fix typoRoger Dingledine2005-12-27
| | | | svn:r5667
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine2005-12-10
| | | | | | | | | | | | 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
* Change how OR conns get removed from the identity map; fix some warnings on ↵Nick Mathewson2005-12-05
| | | | | | shutdown. svn:r5509
* Move connection_or_remove_from_identity_map() to connection_unlink, but dont ↵Nick Mathewson2005-11-30
| | | | | | remove the other; just make it warn. svn:r5470
* Rename connection_get_by_identity_digest to reflect that it is OR-only. ↵Nick Mathewson2005-11-30
| | | | | | Make it use a hashtable instead of a linear search. svn:r5469
* "How about 'never'? Does 'never' work for you?"Nick Mathewson2005-11-26
| | | | | | | | | | | | | | | | | 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
* Cut down a common call to circuit_get_by_conn by about half.Nick Mathewson2005-11-26
| | | | svn:r5459
* when calling connection_get_by_identity_digest, don't do a memcmpRoger Dingledine2005-11-25
| | | | | | | for non-OR conns. this should save a bit of time. svn:r5456
* Recover better from TCP connections to Tor servers that are broken butRoger Dingledine2005-11-19
| | | | | | | | | | | | | | | | 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
* and another overly common log entryRoger Dingledine2005-11-18
| | | | svn:r5417
* simplify a log entryRoger Dingledine2005-11-11
| | | | svn:r5353
* fix a signed/unsigned warningNick Mathewson2005-11-01
| | | | svn:r5344
* Do round-robin writes of at most 16 kB per write. This mightRoger Dingledine2005-10-29
| | | | | | | | be more fair on loaded Tor servers, and it might resolve our Windows crash bug. It might also slow things down. svn:r5332
* Remove last vestiges of old logging interface.Nick Mathewson2005-10-25
| | | | svn:r5317
* Convert circuituse, command, config, connection, relay, router, test to new ↵Nick Mathewson2005-10-25
| | | | | | logging interface svn:r5308
* Downgrade a few INFO level logs to DEBUG again. Also add two or three newPeter Palfrader2005-10-17
| | | | | | | | logs in cases where a calling function's log was downgraded and we wouldn't get any log message otherwise. svn:r5263
* start calling it *ListenAddress rather than *BindAddress,Roger Dingledine2005-10-17
| | | | | | | since none of our users know what it means to bind an address or port. svn:r5260
* Make a few INFO log lines into DEBUGPeter Palfrader2005-10-17
| | | | svn:r5257