Commit Graph

1288 Commits

Author SHA1 Message Date
Nick Mathewson d66ffc4d1e Add Port to *bindAddress.
svn:r1901
2004-05-19 20:25:44 +00:00
Nick Mathewson 5aa7e662e7 Allow multiple logfiles at different severity ranges
svn:r1899
2004-05-19 20:07:08 +00:00
Roger Dingledine ca39626dd4 fix compile error in dirserv
(declare variables before the rest of the function)


svn:r1896
2004-05-19 19:42:50 +00:00
Nick Mathewson cca7106756 Fix segfault
svn:r1895
2004-05-19 19:28:24 +00:00
Nick Mathewson 2946a6a2af remove upper limit on number of descriptors/directories in dirserver; use smartlists instead of arrays
svn:r1894
2004-05-18 17:41:40 +00:00
Roger Dingledine 1341b3e7c7 fix a seg fault, add another XXX for nick ;)
svn:r1892
2004-05-18 16:54:04 +00:00
Nick Mathewson d9066b67ff Resolve some XXXs
svn:r1889
2004-05-18 15:35:21 +00:00
Nick Mathewson 2256c241ba Only try to launch a fixed number of intro circuits for a service per 15-minute period or before all of the intro circuits succeed, whichever comes first
svn:r1883
2004-05-18 01:53:53 +00:00
Nick Mathewson 7b15c60156 Fix segfault and logic error in last patch.
svn:r1881
2004-05-17 20:41:40 +00:00
Nick Mathewson dc74f686ad Make directory functions update routerlist, not replace it. Add notion of OR-is-trusted-to-be-a-dirserver. Arma, please review: does this handle being a dirserver right?
svn:r1880
2004-05-17 20:31:01 +00:00
Roger Dingledine 94a24f1a55 bugfix: our integrity-checking digest was checking only the most
recent cell, not the previous cells like we'd thought.

this change is backward incompatible.


svn:r1868
2004-05-15 23:49:41 +00:00
Roger Dingledine 048350d908 bugfix: if a circuit if borderline too old, then count it as too old.
bugfix: we were retrying the same circuit after getting a resolve
failure. so of course the next two tries would fail too. now we try
a new circuit each time (at most three times).


svn:r1867
2004-05-15 07:21:25 +00:00
Roger Dingledine e4ad204f2e having two example exitpolicy lines, when only one is allowed, was confusing
svn:r1865
2004-05-13 22:38:16 +00:00
Roger Dingledine 3c3326749b assert_cpath_ok has always been broken
re-disable it.


svn:r1864
2004-05-13 07:44:21 +00:00
Roger Dingledine c1f419725e Break files apart into more modules
* \file circuitbuild.c
 * \brief The actual details of building circuits.

 * \file circuitlist.c
 * \brief Manage the global circuit list.

 * \file circuituse.c
 * \brief Launch the right sort of circuits, attach streams to them.

 * \file connection_edge.c
 * \brief Handle edge streams.

 * \file onion.c
 * \brief Functions to queue create cells, and handle onionskin
 * parsing and creation.

 * \file relay.c
 * \brief Handle relay cell encryption/decryption, plus packaging and
 * receiving from circuits.


svn:r1863
2004-05-13 07:24:49 +00:00
Roger Dingledine 60f0f845e8 clean up directory.c API
svn:r1860
2004-05-12 23:48:57 +00:00
Roger Dingledine 2b3e905c82 don't flush the buf from inside connection_write_to_buf
svn:r1859
2004-05-12 22:56:26 +00:00
Roger Dingledine 63ce9819fa break connection_edge_end out of connection_mark_for_close
svn:r1858
2004-05-12 21:12:33 +00:00
Nick Mathewson 22c29b1ea5 Make some functions static
svn:r1857
2004-05-12 20:58:27 +00:00
Roger Dingledine e487cab06c break rend_client_desc_fetched out of connection_mark_for_close
svn:r1856
2004-05-12 20:36:44 +00:00
Roger Dingledine 8eb4b255ea break part of circuit.c into relay.c
svn:r1854
2004-05-12 19:49:48 +00:00
Nick Mathewson e41dcec73e Not every RSA decrypt should warn on failure.
svn:r1853
2004-05-12 19:30:28 +00:00
Nick Mathewson e8a49286e1 Make "connected" a different case from "finished_flushing"; always close_immediate whhen connect() fails.
svn:r1852
2004-05-12 19:17:09 +00:00
Roger Dingledine fe92bd22fb calling flush_buf and not checking for return value is bad
svn:r1851
2004-05-12 18:41:32 +00:00
Roger Dingledine da13aba0af list in-points to command.c
svn:r1849
2004-05-11 03:21:18 +00:00
Nick Mathewson fdb2dcda06 Add an extra flush attempt when closing wedged dir conns, in an attempt to isolate the EPIPE bug
svn:r1848
2004-05-11 01:55:32 +00:00
Nick Mathewson 928b394b75 Split directory/router parsing functionality into separate file from routerlist.c
svn:r1846
2004-05-10 17:30:51 +00:00
Roger Dingledine 31617b8e2f always a bit more
svn:r1844
2004-05-10 10:31:48 +00:00
Roger Dingledine 19cbd81916 it's amazing what a bit of punctuation can do for appearances
svn:r1843
2004-05-10 10:27:54 +00:00
Roger Dingledine 2485a0c461 a few more pieces of markup
svn:r1841
2004-05-10 08:56:42 +00:00
Roger Dingledine db51ae3679 doxygen markup for common/*.h
svn:r1840
2004-05-10 07:54:13 +00:00
Roger Dingledine a63f15d828 more cleanup, including fleshing out or.h more
svn:r1839
2004-05-10 07:37:10 +00:00
Nick Mathewson f0e295b2ca Close rogue <b>s
svn:r1838
2004-05-10 07:27:29 +00:00
Roger Dingledine 43e1f15581 comments and doxygen markup on circuit.c
svn:r1837
2004-05-10 07:02:58 +00:00
Nick Mathewson 0ee7a27be8 Doxygen most of or.h
svn:r1836
2004-05-10 06:52:01 +00:00
Nick Mathewson 81d8190a69 Doxygenate config.c
svn:r1834
2004-05-10 04:48:13 +00:00
Roger Dingledine d5d9f82d17 comment and doxygenate connection_edge.c
svn:r1833
2004-05-10 04:42:22 +00:00
Nick Mathewson 0b54e097b1 More doxygenation.
svn:r1832
2004-05-10 04:34:48 +00:00
Roger Dingledine 0daf1a7a56 give connection.c a skeletal file/brief header
svn:r1831
2004-05-10 03:56:58 +00:00
Roger Dingledine 913d9ed6e2 tweak comment in connection_or
svn:r1830
2004-05-10 03:54:33 +00:00
Nick Mathewson c4405770ae Doxygenate common.
svn:r1829
2004-05-10 03:53:24 +00:00
Roger Dingledine 55622814de doxygen for tor_main.c
svn:r1828
2004-05-10 02:43:41 +00:00
Roger Dingledine cba464a802 remove an orphan function declaration
svn:r1827
2004-05-10 02:39:48 +00:00
Roger Dingledine 2f7176b7ca function header comments for onion.c, including doxygen markup
svn:r1826
2004-05-10 02:36:04 +00:00
Roger Dingledine c4035c4d32 function header comments for connection.c, including doxygen markup
svn:r1825
2004-05-10 01:32:57 +00:00
Roger Dingledine bce5329510 more doxygen markup
plenty more remains


svn:r1824
2004-05-09 16:47:25 +00:00
Roger Dingledine aacfdc0f1b bugfix: do directory_send_command only after we've established a socket
also many comments, cleaning, etc


svn:r1823
2004-05-09 16:33:04 +00:00
Nick Mathewson 3acaad6784 Add doxygen markup for util and buffers
svn:r1820
2004-05-07 17:04:12 +00:00
Roger Dingledine af494efead comment the functions in connection_or.c
svn:r1818
2004-05-07 08:53:40 +00:00
Roger Dingledine d64195e310 comment the functions in command.c
this is one of the files nick regarded as scary, so hopefully
these will help.


svn:r1817
2004-05-07 08:07:41 +00:00