aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
Commit message (Expand)AuthorAge
* don't connection_edge_end() on eof if we're already marked for close,•••because if we are then it's because we already got an end. svn:r3223 Roger Dingledine2004-12-24
* clean up logging,•••make it clearer which warns are bugs, make the control log event match its specification, point out a bug in how we deal with failure when renewing the tls context. svn:r3138 Roger Dingledine2004-12-13
* resolve tequila's crash bug: you can't free something•••and then keep using it. svn:r3117 Roger Dingledine2004-12-07
* fix the other half of the pipe race•••svn:r3111 Roger Dingledine2004-12-07
* answer resolved ip in network order•••svn:r3087 Roger Dingledine2004-12-06
* avoid using uninitialized variable•••svn:r3086 Roger Dingledine2004-12-06
* don't use cache for resolving .foo.exit names, but do reply immediately•••if we're asked to resolve an IP.foo.exit. svn:r3085 Roger Dingledine2004-12-06
* fix indenting•••svn:r3084 Roger Dingledine2004-12-06
* check if we have a cached resolve for a tor-resolve address *after*•••we remove the .foo.exit part of the address. svn:r3082 Roger Dingledine2004-12-05
* New circuit building strategy: keep a list of ports that we've used in ...•••that will handle each such port. (We can extend this to include addresses if exit policies shift to require that.) Seed us with port 80 so web browsers won't complain that Tor is "slow to start up". This was necessary because our old circuit building strategy just involved counting circuits, and as time went by we would build up a big pile of circuits that had peculiar exit policies (e.g. only exit to 9001-9100) which would take up space in the circuit pile but never get used. Fix router_compare_addr_to_addr_policy: it was not treating a port of * as always matching, so we were picking reject *:* nodes as exit nodes too. If you haven't used a clean circuit in an hour, throw it away, just to be on the safe side. This means after 6 hours a totally unused Tor client will have no circuits open. svn:r3078 Roger Dingledine2004-12-05
* Now we allow writing to the buffer even when the stream if marked for•••close, if we're planning to wait to flush it. This is important because we were sending a socks reject back if we're closing and hadn't already sent one, but it wasn't actually getting written since the conn was already marked-for-close. svn:r3074 Roger Dingledine2004-12-04
* React to eof immediately on non-open edge connections.•••Stop keeping track of num_retries for apconns, since they expire after 60 seconds anyway. When warning about retrying or giving up, print the address, so the user knows which one it's talking about. svn:r3073 Roger Dingledine2004-12-04
* bugfix: When we were checking to see if an ap_conn should time out•••waiting for its connected cell, we were calculating time from when the ap_conn was created. So if it waited say 20 seconds before being attached, then we would immediately decide that the circuit had timed out. Also, make circuit_dump_by_conn() display actual circuit progress, including circuits that haven't been attached to the conn yet but hope to when it finishes connecting. svn:r3072 Roger Dingledine2004-12-04
* Add function to check that addr_policy_t is okay; change struct addr_policy_t...•••svn:r3070 Nick Mathewson2004-12-04
* clean up the other "Tell Roger" log that dfc keeps getting•••svn:r3042 Roger Dingledine2004-11-30
* Let resolve conns retry/expire also, rather than sticking around forever.•••Put the check-if-requested-exitrouter-will-reject-us code in the circuit_attach loop, so it gets checked periodically and not just once at the beginning. This is useful in case the routerlist changes, but also in case the address gets resolved into something that we learn we'll reject. svn:r3039 Roger Dingledine2004-11-30
* refuse .exit addresses immediately if the requested node would•••refuse the request (e.g. due to exit policy or wrong version) svn:r3038 Roger Dingledine2004-11-30
* Fix last patch•••svn:r3031 Nick Mathewson2004-11-30
* Rename parse_address to parse_extended_hostname (since we have other kinds of...•••svn:r3029 Nick Mathewson2004-11-30
* Suggestion from weasel: Make tor --version --version dump the cvs Id of every...•••svn:r3019 Nick Mathewson2004-11-29
* put in initial support for ".nickname.exit" addresses, to let alice•••decide what exit node to use; based on a patch by geoff goodell. needs more work: e.g. it goes bananas building new circuits when the chosen exit node's exit policy rejects the connection. svn:r3015 Roger Dingledine2004-11-29
* wrong is ok, and right is fine, but in between is apparently•••totally unacceptable to me. svn:r3005 Roger Dingledine2004-11-28
* Normalize space: add one between every control keyword and control clause.•••svn:r3003 Nick Mathewson2004-11-28
* remove emacs droppings, since nick says he doesn't need them anymore•••svn:r2989 Roger Dingledine2004-11-26
* make tor-resolve work, uh, more. this time for sure!•••svn:r2974 Roger Dingledine2004-11-24
* make tor-resolve work again•••svn:r2973 Roger Dingledine2004-11-24
* bugfix: let socks do multiple rounds of negotiation again•••(which is needed for socks5) svn:r2970 Roger Dingledine2004-11-24
* Normalize a few more kinds of whitespace. We now dislike:••• - func (args) - if (x){ This doesn't normalize if(x), for(x); while(x), and friends. svn:r2943 Nick Mathewson2004-11-22
* The crowning bugfix.•••The problem was that with high load, circuit package window was reaching 0. Whenever we got a circuit-level sendme, we were reading a lot on each socket, but only writing out a bit. So we would eventually reach eof. This would be noticed and acted on even when there are still bytes sitting in the inbuf. svn:r2932 Roger Dingledine2004-11-21
* break reached_eof() out of process_inbuf()•••svn:r2930 Roger Dingledine2004-11-21
* some more debugging aids•••svn:r2929 Roger Dingledine2004-11-21
* be more greedy about filling up all relay cells.•••this may have some bugs in it still. and it may end up not being what we want to do. svn:r2928 Roger Dingledine2004-11-21
* allow StrictEntryNode and StrictExitNode to be singular•••svn:r2922 Roger Dingledine2004-11-20
* clean up socks handling, refuse connections to port 0•••svn:r2888 Roger Dingledine2004-11-15
* Remove redundant declaration•••svn:r2855 Nick Mathewson2004-11-14
* Rename exit_policy to addr_policy, since it gets used for SOCKS and directory...•••svn:r2819 Nick Mathewson2004-11-12
* remove extraneous variable•••svn:r2765 Roger Dingledine2004-11-10
* Normalize whitespace; add a "tell me about all the unnormalized whitespace" t...•••svn:r2758 Nick Mathewson2004-11-09
* Resolve many XXXs and all DOCDOCs•••svn:r2755 Nick Mathewson2004-11-09
* Clean up copyrights.•••Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698 Roger Dingledine2004-11-07
* Make options no longer a global variable.•••Now we can try setting an option but back out if it fails to parse, or if it's disallowed (e.g. changing RunAsDaemon from 1 to 0). Use parse_line_from_str rather than parse_line_from_file. svn:r2692 Roger Dingledine2004-11-06
* better interface for connection_ap_handshake_socks_reply()•••make --list-fingerprint print the fingerprint again svn:r2668 Roger Dingledine2004-11-03
* - Implement all of control interface except authentication, setconfig,••• and actually making the sockets. - Make sure that identity-based nicknames start with $. - Use new string_join interface. svn:r2661 Nick Mathewson2004-11-03
* implement first piece of hibernation•••still need to track bandwidth, and make decisions based on bandwidth svn:r2630 Roger Dingledine2004-10-31
* Tricksy compiler warnings! We hates them, hates them forever, my precious!•••svn:r2615 Nick Mathewson2004-10-27
* Use strlcpy, not strcpy.•••svn:r2610 Nick Mathewson2004-10-27
* Use tor_snprintf, not snprintf•••svn:r2609 Nick Mathewson2004-10-27
* Add "pass" target for RedirectExit, to make it easier to break out of a seque...•••svn:r2566 Nick Mathewson2004-10-19
* start the process of making 0.0.7* obsolete•••svn:r2565 Roger Dingledine2004-10-17
* use connection_edge_is_rendezvous_stream() more•••svn:r2564 Roger Dingledine2004-10-17