aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Collapse)AuthorAge
* Resolve a bunch of FIXME items; mark a lot more for attention; ask for ↵Nick Mathewson2004-11-12
| | | | | | clarification on some. Turn all XXXX008 ("showstopper for 0.0.8 release") items into XXXX009 or XXXX, since plainly they were not showstoppers for 0.0.8. Add/clean some docs. svn:r2808
* Resolve FIXME: Possible solution to note_disconnect problem; needs thought ↵Nick Mathewson2004-11-12
| | | | | | and review. svn:r2807
* Resolve FIXMES: sometimes an error code is just an error codeNick Mathewson2004-11-12
| | | | svn:r2805
* Normalize whitespace; add a "tell me about all the unnormalized whitespace" ↵Nick Mathewson2004-11-09
| | | | | | target; fix a braino in dirserv.c svn:r2758
* Clean up copyrights.Roger Dingledine2004-11-07
| | | | | | | | Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698
* Make options no longer a global variable.Roger Dingledine2004-11-06
| | | | | | | | | 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
* add a ControlPort and control listener conn.Roger Dingledine2004-11-04
| | | | | | | note that print_usage is obsolete. svn:r2671
* clarify the bandwidthburst and bandwidthrate are in bytesRoger Dingledine2004-11-04
| | | | | | | (niels had thought they were in bits, or kb, or something) svn:r2669
* better interface for connection_ap_handshake_socks_reply()Roger Dingledine2004-11-03
| | | | | | | make --list-fingerprint print the fingerprint again svn:r2668
* - Implement all of control interface except authentication, setconfig,Nick Mathewson2004-11-03
| | | | | | | | | and actually making the sockets. - Make sure that identity-based nicknames start with $. - Use new string_join interface. svn:r2661
* Streamline the two redundant "Has the second rolled over?" checks in ↵Nick Mathewson2004-11-03
| | | | | | prepare_for_poll and connection_bucket_refill; also, generate BANDWIDTH control events svn:r2657
* connection_read_bucket_decrement() has a side-effect thatRoger Dingledine2004-11-03
| | | | | | | we need to get even if we just read 0 bytes svn:r2656
* Start implementing control interface.Nick Mathewson2004-11-03
| | | | svn:r2652
* First attempt at hibernation code. It needs more work around the XXXXs, but ↵Nick Mathewson2004-11-02
| | | | | | first I want arma to review the basic approach while I meditate on how to fix them. svn:r2649
* Use a stricter set of warnings; make them all pass.Nick Mathewson2004-11-02
| | | | svn:r2645
* implement first piece of hibernationRoger Dingledine2004-10-31
| | | | | | | still need to track bandwidth, and make decisions based on bandwidth svn:r2630
* Tricksy compiler warnings! We hates them, hates them forever, my precious!Nick Mathewson2004-10-27
| | | | svn:r2615
* quick-and-dirty dir policy since the dirservers are getting hammeredRoger Dingledine2004-10-25
| | | | | | | | nick, could you abstract this sometime so we don't repeat the sockspolicy code twice? svn:r2589
* Document the swiss-army-knife that retry_listeners has becomeNick Mathewson2004-10-24
| | | | svn:r2584
* Many non-native speakers use Tor. It is our duty to ensure that our log ↵Nick Mathewson2004-10-24
| | | | | | messages set an example of good English spelling. svn:r2583
* Every 60 seconds, check whether the listeners are still alive, and relaunch ↵Nick Mathewson2004-10-24
| | | | | | the dead ones. svn:r2581
* Handle more errnos from accept() without closing the connection. This may ↵Nick Mathewson2004-10-24
| | | | | | fix a bug that could close OR listeners when (a) TCP connections were hung up before accept() could be called, or (b) during FD exhaustion. svn:r2579
* don't assert multiple things in the same tor_assert()Roger Dingledine2004-10-16
| | | | svn:r2544
* Fix unit tests, make it compileNick Mathewson2004-10-16
| | | | svn:r2543
* Change interface of parse_addr_port() to return address in host order, since ↵Nick Mathewson2004-10-16
| | | | | | most users seem to want that. svn:r2542
* fix warning on win32Nick Mathewson2004-10-14
| | | | svn:r2518
* bugfix on a really old bug:Roger Dingledine2004-10-14
| | | | | | | | if read() fails on a stream, send back an end cell before you close it down. svn:r2509
* Build without warnings on mac gcc 3.3Nick Mathewson2004-10-14
| | | | svn:r2487
* more int to size_t conversions, fixing one or more amd64 bugsRoger Dingledine2004-10-14
| | | | | | | plus a whitespace patch on config.c from vicman svn:r2482
* Remove need for dirservers file: now, we note trusted dirservers in ↵Nick Mathewson2004-10-14
| | | | | | configuration options, and only need to remember addr:port and key digest for each one. svn:r2479
* stop trying to print a NULLRoger Dingledine2004-10-13
| | | | | | | plus make router_nickname_is_approved() more obviously unused svn:r2469
* Unify tests for "did I originate this nonopen OR connection?"Nick Mathewson2004-10-13
| | | | svn:r2468
* fix typoNick Mathewson2004-10-13
| | | | svn:r2466
* answer question about rep_hist_note_connect_failedNick Mathewson2004-10-13
| | | | svn:r2464
* Use parse_addr_port() function instead of ad-hoc variantsNick Mathewson2004-10-12
| | | | svn:r2441
* prefer tor_free to freeRoger Dingledine2004-09-29
| | | | | | | plus complain more loudly when we fail to parse a dir we just fetched svn:r2401
* Flush more changes from sandboxNick Mathewson2004-09-08
| | | | | | | | | | | | | | | | | - make clients cache directories and use them to seed their router lists at startup. This means clients have a datadir again. - Introduce a global_write_bucket. We need to respond better to exhausting it. - Remove the last vestiges of LinkPadding and TrafficShaping. - Configuration infrastructure support for warning on obsolete options. - Refactor directory header parsing to use smartlist_split_string. - Respond to content-encoding headers by trying to uncompress as appropriate. - Reply with a deflated directory when a client asks for "dir.z". (We could use allow-encodings instead, but allow-encodings isn't specified in HTTP 1.0.) svn:r2335
* Move a paren 4 characters to the left; fix a bug in OutboundBindAddressNick Mathewson2004-09-02
| | | | svn:r2330
* if they ask for exactly one entrynode, don't pick it as an exitnode.Roger Dingledine2004-08-17
| | | | | | | also, fix part of the zero-identity-router-in-stats bug svn:r2252
* o Handle servers with dynamic IP addresses: don't replaceRoger Dingledine2004-08-16
| | | | | | | | | | | options->Address with the resolved one at startup. o detect our address right before we make a routerinfo each time. o external IP vs bind-IP. Already done, just use options->Address. o OutboundBindAddress config option, to bind to a specific IP address for outgoing connect()s. svn:r2241
* commit some minor fixes from this sandbox so i can commit the next oneRoger Dingledine2004-08-15
| | | | svn:r2229
* stop wasting cpu time on authdirserversRoger Dingledine2004-08-08
| | | | | | | | we were making a new directory only when the old one was dirty, but every time we made one, we'd dirty it by testing it right then. svn:r2199
* fix a race condition in 008pre2: don't try to extend onto a connectionRoger Dingledine2004-08-08
| | | | | | | | | | that's still handshaking. for servers in clique mode, require the conn to be open before you'll choose it for your path. svn:r2198
* fix an assert: check the sockspolicy before we make/add the connection,Roger Dingledine2004-08-06
| | | | | | | | else we close a connection without assigning it a state, which is bad because it fails assert_conn_ok() svn:r2156
* when we get a sigint, don't accept new connections/circuits,Roger Dingledine2004-07-20
| | | | | | | | but delay 30 seconds until exiting. if we get a second sigint, exit immediately. svn:r2070
* a whole swath of fixesRoger Dingledine2004-07-20
| | | | | | | | | | | | | | | | | | | introduce an authdir_mode() macro to match the others. don't initialize uptime to the number of seconds since 1970. non-authoritative dirservers don't cache their directory on disk. make only authdirservers use clique_mode. only read approved-routers file if you're an authdirserver. even authdirservers fetch a new directory in do_hup. retry_all_connections() is now called retry_all_listeners(). router_parse_list_from_string() correctly reports the router number it's working on. only call dirserv_add_own_fingerprint() and dirserv_add_descriptor() on startup if we're an authdirserver. if AuthDir and !ORPort then fail. if AuthDir and ClientOnly then fail. svn:r2061
* it turns out we weren't looking at the result from getsockopt().Roger Dingledine2004-07-19
| | | | | | | | | | | | now we do. but i'm not sure it matters, since we also poll for reads, and if there's an error with the connecting socket, poll is supposed to return readable, so we should notice it then. who knows. svn:r2057
* abstract ORPort/SocksPort checks into server_mode(), proxy_mode(), ↵Nick Mathewson2004-07-18
| | | | | | clique_mode(), etc. Dont change underlying comments. svn:r2054
* Finish most pre2 items: make running-routers list work right; rename secret ↵Nick Mathewson2004-07-13
| | | | | | key files; make even more lookup-by-nickname use lookup-by-id; default nicknames to hostname. svn:r2043
* only count bytes transmitted to/from non-local IPsRoger Dingledine2004-07-13
| | | | svn:r2041