Commit Graph

886 Commits

Author SHA1 Message Date
Roger Dingledine 79dc5ab0ea break routers.c into router.c for stuff the router does,
and routerlist.c for handling routerlist.


svn:r887
2003-12-06 05:54:04 +00:00
Roger Dingledine ef10ea41af terminology shift:
directory is the string that dirserv.c and directory.c deal with
routerlist is routerinfo's that are bundled together in routers.c

rename some of the get_routerlist functions to set_routerlist

preparing to break into router.c for stuff the router does,
and routerlist.c for handling routerlist.


svn:r886
2003-12-05 09:51:49 +00:00
Roger Dingledine ca879f5ae1 prevent assert failure on -HUP when options->PidFile==NULL
svn:r885
2003-12-03 22:00:20 +00:00
Roger Dingledine d4b217e633 we are pre15
svn:r884
2003-12-03 21:05:15 +00:00
Roger Dingledine 89a0ef5184 OnionRouter config option is obsolete
svn:r883
2003-12-03 20:21:03 +00:00
Roger Dingledine 46f6c59f1c update the TODO to reflect recent commits
svn:r882
2003-12-03 10:44:11 +00:00
Roger Dingledine 5fc49c0d68 choose randomly from running dirservers, not always the first one
svn:r881
2003-12-03 10:39:27 +00:00
Roger Dingledine a8df101b1f pick nodes for a circuit only from those the directory says are up
svn:r880
2003-12-03 10:28:51 +00:00
Roger Dingledine d23f2e5fe4 stop segfault when choose_good_exit_server returns NULL
svn:r879
2003-12-03 10:04:44 +00:00
Roger Dingledine c1bc760007 switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions
enforce -g on compile always. we're an alpha release after all.


svn:r878
2003-12-03 09:55:16 +00:00
Roger Dingledine 7199581af8 don't --enable-debug by default on ./configure
svn:r877
2003-12-03 09:53:46 +00:00
Roger Dingledine e6a96256fd fix vicious bug in connection_ap_attach_pending that caused it to
never work.
fix vicious bug in choose_good_exit_server that caused it to *skip over*
  pending circuits, and look only at *non-pending circuits*, when choosing
  a good exit node for the new circuit.
bugfix: remove incorrect asserts in circuit_get_newest()


svn:r876
2003-12-03 09:50:02 +00:00
Roger Dingledine a2bc60ce70 assert that nobody asks for a random number between 0 and -1
svn:r875
2003-12-03 08:08:07 +00:00
Roger Dingledine 94899b7416 bugfix in exit node choice: we used to find the perfect exit node but then use the wrong one.
bugfix in connection_ap_can_use_exit: it was using the wrong port
bugfix: the OP now handles a port of '*' correctly when the IP is not
  yet known and it's trying to guess whether a router's exit policy
  might accept it.
we now don't ever pick exit routers which will reject *:*
attach_circuit now fails a new stream outright if it will never work.
when you get an 'end' cell that resolves an IP, now it will fail the                             circuit outright if no safe exit nodes exist for that IP.
don't try building a new circuit after an 'end' if a suitable one is
  already on the way.


svn:r874
2003-12-03 08:06:55 +00:00
Roger Dingledine 03142f337d stop expecting sample-server-torrc to be there
svn:r873
2003-12-02 22:43:23 +00:00
Steven Hazel b5ebf16e73 install that man page
svn:r872
2003-12-02 21:21:21 +00:00
Roger Dingledine fb9cc9b73e update TODO with remaining pre15 tasks
svn:r871
2003-12-02 18:20:31 +00:00
Roger Dingledine b69fedc5b6 start tracking a rare bug: package_raw_inbuf gets called with package_window 0
Nov 25 22:39:18.294 [warn] connection_edge_package_raw_inbuf(): called with package_window 0. T
ell Roger.


svn:r870
2003-11-30 10:10:29 +00:00
Roger Dingledine 3e3e0b6430 stop complaining as loudly when a dns resolve fails
svn:r869
2003-11-30 09:57:00 +00:00
Roger Dingledine d404555625 bugfix: we were writing to stderr even when it's closed
svn:r868
2003-11-30 09:51:35 +00:00
Roger Dingledine c89227eef4 bump up header length when the dirserv reads http commands
Nov 23 12:10:26.556 [warn] fetch_from_buf_http(): headerlen 1487 larger than 1023. Failing.
Nov 23 12:10:26.556 [warn] directory_handle_command(): input too large. Failing.


svn:r867
2003-11-30 09:47:57 +00:00
Roger Dingledine a2a3e08a60 remove a conn_close_if_marked warning
Nov 27 15:45:19.003 [warn] connection_write_to_buf(): write_to_buf failed. Closing connection (fd 42).
Nov 27 15:45:19.010 [warn] conn_close_if_marked(): Conn (socket 42) still wants to flush. Losing 0 bytes!


svn:r866
2003-11-30 09:35:26 +00:00
Roger Dingledine 5ce80a34d4 bugfix: an offline OP would leak all its sockets and stop working
svn:r865
2003-11-29 02:50:12 +00:00
Nick Mathewson c9c00d3a60 Fix a few bugs in sending and receiving DNS results
svn:r864
2003-11-23 18:16:06 +00:00
Nick Mathewson 78c58d8564 Bring assert_connection_ok up to date
svn:r863
2003-11-23 18:14:19 +00:00
Nick Mathewson 1bcbfc8e74 Fix incorrect error message
svn:r862
2003-11-21 05:55:03 +00:00
Roger Dingledine 3ce34b1631 stop building sample-server-torrc, start building tor.1
svn:r861
2003-11-21 04:19:24 +00:00
Roger Dingledine 66784ec460 we have a man page.
svn:r860
2003-11-20 20:56:52 +00:00
Roger Dingledine 01b16175c8 change 'so you want to run your own server' directions
svn:r859
2003-11-20 18:23:19 +00:00
Roger Dingledine 3cb9d6014d merge torrc.in and sample-server-torrc.in
svn:r858
2003-11-20 18:22:09 +00:00
Roger Dingledine bcfe4f333d simplify: options.OnionRouter==1 iff options.ORPort>0
svn:r857
2003-11-20 17:49:45 +00:00
Roger Dingledine 699b8a9f8b install now recognizes that -l warn is default
svn:r856
2003-11-19 22:58:19 +00:00
Roger Dingledine e67a4f3916 default log level is now warn
(info is too noisy)


svn:r855
2003-11-19 22:48:48 +00:00
Roger Dingledine 54feb122f9 define the pidfile on the commandline, if you want it
svn:r854
2003-11-19 22:48:07 +00:00
Roger Dingledine 4d55f3da02 make pidfile default to null rather than writing to your cwd
svn:r853
2003-11-19 22:45:06 +00:00
Roger Dingledine 97ed3eb227 if you tell people that IgnoreVersion exists,
some of them will use it rather than upgrade.


svn:r852
2003-11-19 21:24:04 +00:00
(no author) 5c32fd74c0 This commit was manufactured by cvs2svn to create tag
'tor-0_0_2pre14'.

svn:r851
2003-11-19 13:29:08 +00:00
Roger Dingledine 55a7db5f6c we are pre14.
svn:r850
2003-11-19 13:29:08 +00:00
Roger Dingledine c6deb6d4ed updated todo
svn:r849
2003-11-19 13:29:00 +00:00
Roger Dingledine 47851b693c bugfix and cleanups
svn:r848
2003-11-19 13:12:43 +00:00
Nick Mathewson 58957311a5 Separate failure-count tracking from circuit-launching.
Increment failure counts only when circuits close without having been built.
Reset failure counts only on the second, and when circuits are done building.


svn:r847
2003-11-19 02:22:52 +00:00
Peter Palfrader c64079c3af Check that we can write to the logfile and log a warning to stderr if we can't
Move writing of pidfile after daemonizing, and also after setting the [ug]id:
This means that the tor user needs write priviliges to the pidfile location.
It needs it for unlinking the pidfile anyway.


svn:r846
2003-11-19 02:09:43 +00:00
Nick Mathewson 67080fb151 Patch last patch to last patch
svn:r845
2003-11-19 01:35:44 +00:00
Nick Mathewson 39012e20bc removed unused variable; silence warning
svn:r844
2003-11-19 01:32:34 +00:00
Nick Mathewson dbdd1b2005 Patch last patch.
svn:r843
2003-11-19 01:28:57 +00:00
Nick Mathewson dc98bad05a Skip non-running routers for exit node selection
svn:r842
2003-11-19 01:24:19 +00:00
Roger Dingledine 3ac36338f4 bugfix: sometimes we closed a circ while cpuworker was cranking,
and it didn't notice


svn:r841
2003-11-18 21:12:17 +00:00
Roger Dingledine 0bb020cb6d revert part of that last change
time for bed


svn:r840
2003-11-18 10:38:13 +00:00
Roger Dingledine d566d69051 make more sure we can't end up with two connections to the same OR
fix leaked pk in connection_tls_finish_handshake


svn:r839
2003-11-18 10:17:52 +00:00
Roger Dingledine b084f9e630 bugfix: don't ask for ->next of an expired circuit
bugfix: keep going when a circ fails in circuit_n_conn_open
        (make circuit_enumerate_by_naddr_nport obsolete)
bugfix: make circuit_n_conn_open only look at circ's that start at us
bugfix: only try circuit_n_conn_open if we're an OP. Otherwise we
        expect connections to always already be up.
bugfix: when choosing path length, pay attention to whether the directory
        says a router is down.
bugfix: when picking good exit, skip routers which are known to be down
        (more work needs to be done on this one)


svn:r838
2003-11-18 09:53:03 +00:00