aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Collapse)AuthorAge
...
* 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
* checkpoint: start working on bandwidth tracking andRoger Dingledine2004-07-13
| | | | | | | letting clients evaluate whether they're suitable servers svn:r2037
* tor now tolerates down dirservers betterRoger Dingledine2004-07-12
| | | | svn:r2031
* if connecting to an OR fails immediately, mark it as downRoger Dingledine2004-07-12
| | | | svn:r2029
* touchups all overRoger Dingledine2004-07-04
| | | | | | | put uptime in descriptor svn:r2011
* More digest/nickname fixesNick Mathewson2004-07-02
| | | | svn:r2000
* Track routers by hash of identity key; use hex hash of identity key in place ↵Nick Mathewson2004-07-01
| | | | | | of nickname; accept (and use) hash of identity key in EXTEND cells. svn:r1994
* Implement RESOLVE/RESOLVED cells and socks resolve codeNick Mathewson2004-06-17
| | | | svn:r1978
* Make tor build on win32 again; handle locking for serverNick Mathewson2004-06-05
| | | | svn:r1948
* be sure to detach streams from the circuit linked list before freeing themRoger Dingledine2004-06-02
| | | | | | | also, don't bother marking a conn for close if you're about to free it svn:r1935
* when the dns resolve is cancelled, or fails, be sure to removeRoger Dingledine2004-05-21
| | | | | | | | | conn from circ->resolving_streams otherwise it gets freed and stays there, causing seg faults. svn:r1915
* enable checking the socks policyRoger Dingledine2004-05-20
| | | | svn:r1906
* Allow multiple exit policy lines; mostly add support for AP policiesNick Mathewson2004-05-20
| | | | svn:r1905
* do all the heavy lifting in connection_about_to_close_connection,Roger Dingledine2004-05-19
| | | | | | | | | not in _connection_mark_for_close this will hopefully clean up the huge cyclical function mess svn:r1903
* Add Port to *bindAddress.Nick Mathewson2004-05-19
| | | | svn:r1901
* don't flush the buf from inside connection_write_to_bufRoger Dingledine2004-05-12
| | | | svn:r1859
* break connection_edge_end out of connection_mark_for_closeRoger Dingledine2004-05-12
| | | | svn:r1858
* Make some functions staticNick Mathewson2004-05-12
| | | | svn:r1857
* break rend_client_desc_fetched out of connection_mark_for_closeRoger Dingledine2004-05-12
| | | | svn:r1856