aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
Commit message (Collapse)AuthorAge
* defense in depthRoger Dingledine2006-07-30
| | | | svn:r6939
* r6922@Kushana: nickm | 2006-07-26 16:32:24 -0400Nick Mathewson2006-07-27
| | | | | | | Rename some fields, compress a bitfield, and document some structs and fields svn:r6919
* r6909@Kushana: nickm | 2006-07-26 13:05:58 -0400Nick Mathewson2006-07-26
| | | | | | | Clean up wide lines from last patch. svn:r6907
* r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400Nick Mathewson2006-07-26
| | | | | | | 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
* r6902@Kushana: nickm | 2006-07-25 17:30:27 -0400Nick Mathewson2006-07-26
| | | | | | | Move rend_query to origin_circuit_t where it belongs; save another 17 bytes per OR circuit. svn:r6903
* Don't tell anybody, but we're going OO here. This patch splitsNick Mathewson2006-07-23
| | | | | | | | | | | | | | | circuit_t into origin_circuit_t and or_circuit_t. I fixed some segaults; there may be more. We still need to move more rendezvous stuff into subtypes. This is a trial run for splitting up connection_t; if the approach is insane, please say so soon so we can do something smarter. Also, this discards the old HALF_OPEN code, which nobody seems to want. svn:r6817
* don't squeal if the first few retries fail.Roger Dingledine2006-07-18
| | | | svn:r6791
* Define a schedule for how long to wait between retryingRoger Dingledine2006-07-18
| | | | | | | | | | | | application connections. Rather than waiting a fixed amount of time between each retry, we wait only 5 seconds for the first, 10 seconds for the second, and 15 seconds for each retry after that. Hopefully this will improve the expected experience. Addresses bug 297. svn:r6790
* If we are using an exit enclave and we can't connect, e.g. becauseRoger Dingledine2006-07-18
| | | | | | | | its webserver is misconfigured to not listen on localhost, then back off and try connecting from somewhere else before we fail. svn:r6783
* stick to nick's nul/null conventionRoger Dingledine2006-07-15
| | | | svn:r6763
* 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
* We got an obscure report of an assert error on a windows Tor server withRoger Dingledine2006-06-06
| | | | | | | | | | connection_add being called with socket = -1. The only places I can see where that happen would be if our tor_socketpair succeeds but it hands back negative values for some of its file descriptors. Perhaps this will produce more useful assert errors next time. svn:r6550
* Oops. When we dont get a TTL, we should default to the default, not to the ↵Nick Mathewson2006-06-03
| | | | | | minimum. svn:r6527
* More DNS fixes. Send meaningful TTLs back to the client whenNick Mathewson2006-06-03
| | | | | | | | | | | possible. Cache at the server side independently from the TTL, to prevent attackers from probing the server to see who has been asking for what hostnames. (Hi, Dan Kaminski!) Also, clean some whitespace. svn:r6526
* add a few more debugging lines to help mikec track down hisRoger Dingledine2006-05-23
| | | | | | | 11 minute jump into the future. svn:r6465
* class B really means /16 hereRoger Dingledine2006-04-18
| | | | svn:r6404
* require at least 2**16 assignable virtual addressesNick Mathewson2006-04-18
| | | | svn:r6402
* [Forward-port ]Test and document last patch.Nick Mathewson2006-04-18
| | | | svn:r6400
* [forward-port] Implement an option, VirtualAddrMask, to set which addresses ↵Nick Mathewson2006-04-18
| | | | | | get handed out in response to mapaddress requests. Needs testing and docs! svn:r6398
* Don't yell loudly about failed internal/bridge connections. TheseRoger Dingledine2006-04-09
| | | | | | | | are reachability testing and rendserv upload/downloads, and they have their own failure messages elsewhere. svn:r6343
* Refactor and consolidate addr/exit policies into a new policies.c.Roger Dingledine2006-03-27
| | | | | | | Fix some minor bugs and memory leaks along the way. svn:r6246
* new config option SocksTimeout: How long do we let a socks connectionRoger Dingledine2006-03-21
| | | | | | | | | | wait unattached before we fail it? Use this value for controller socks timeout, for normal socks timeout, and for hidden-service socks timeout. svn:r6217
* 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
* i'm a little teapot, short and stoutRoger Dingledine2006-03-19
| | | | svn:r6192
* simplify when we're picking a default address forRoger Dingledine2006-03-18
| | | | | | | when people ask for "serifos.exit". svn:r6187
* normalize whitespace.Nick Mathewson2006-03-17
| | | | svn:r6173
* resume being printist: if the hostname contains non-printableRoger Dingledine2006-03-15
| | | | | | | | | | | | characters, then fail. this time don't even bother telling the server operator about these cases, because what's he going to do? if it turns out that some significant population somewhere in the world uses non-printable hostnames and wants to use tor, then i hereby assume that they will contact us. svn:r6171
* Stop being printist: just because our local platform doesn'tRoger Dingledine2006-03-15
| | | | | | | | consider an alleged destination to be printable doesn't mean nobody in the world will want to use it. svn:r6167
* change INET_NTOA_BUF_LEN+1 to INET_NTOA_BUF_LENPeter Palfrader2006-03-14
| | | | | | | add a comment in a few places where we add weird numbers to buffer lengths svn:r6161
* Now do address rewriting when the controller asks us to attachRoger Dingledine2006-03-12
| | | | | | | | | | to a particular circuit too. This will let Blossom specify "moria2.exit" without having to learn what moria2's IP address is. It may also cause other controller authors some angst. Let us know. svn:r6136
* 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
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* Fix bug 225: now "attachstream 0" treats conn like it just connected,Roger Dingledine2006-02-03
| | | | | | | | | | doing address remapping, handling .exit and .onion idioms, and so on. Now we are more uniform in making sure that the controller hears about all new connections, and making sure it hears when they close. svn:r5897
* 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
* Add reasons to DESTROY and RELAY_TRUNCATED cells.Nick Mathewson2006-01-05
| | | | svn:r5734
* 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
* what the heck is wrong with this little piece of code?Roger Dingledine2005-12-07
| | | | | | | | why can none of us get it right? it looks so simple. svn:r5521
* tell the controller about new .onion streams too.Roger Dingledine2005-12-06
| | | | svn:r5520
* the other half of weasel's patch, so old gcc's can build cvs again.Roger Dingledine2005-12-06
| | | | svn:r5517
* Old gccs want you to do your variable declarations firstPeter Palfrader2005-12-06
| | | | svn:r5516
* when we're giving up on a circuit and retrying on a new one,Roger Dingledine2005-12-06
| | | | | | | | log the name of the exit node. perhaps people will find this useful, or see patterns, or something. svn:r5515
* Set chosen_exit_name to something we are not about to zero.Nick Mathewson2005-12-05
| | | | svn:r5507
* When parsing foo.exit, if foo is unknown, and we are leaving circuits ↵Nick Mathewson2005-12-05
| | | | | | unattached, set the chosen_exit field and leave the address empty svn:r5504
* fix a log message to be mildly more helpfulRoger Dingledine2005-12-04
| | | | svn:r5498
* Clean up some comments; remove some dead codeNick Mathewson2005-12-03
| | | | svn:r5493
* Expunge remaining places where we used "tree" to mean "associative array".Nick Mathewson2005-12-03
| | | | svn:r5490
* Fix some verbose warnings and remove an unneeded include.Nick Mathewson2005-11-30
| | | | svn:r5472
* Replace balanced trees with hash tables: this should make stuff ↵Nick Mathewson2005-11-23
| | | | | | significantly faster. svn:r5441