Commit Graph

153 Commits

Author SHA1 Message Date
Roger Dingledine edae7be7fa fix endian issues for topics -- they might work on bsd now
(they wouldn't have before)

alternate code which bypasses the dns farm, so we can compare speed


svn:r154
2003-02-06 23:48:35 +00:00
Roger Dingledine efa45fad4d make reusing circuits work (and be the default)
performance is better, but not by much. not sure why yet.


svn:r153
2003-02-06 08:00:49 +00:00
Roger Dingledine b71620157a major overhaul: dns slave subsystem, topics
on startup, it forks off a master dns handler, which forks off dns
slaves (like the apache model). slaves as spawned as load increases,
and then reused. excess slaves are not ever killed, currently.

implemented topics. each topic has a receive window in each direction
at each edge of the circuit, and sends sendme's at the data level, as
per before. each circuit also has receive windows in each direction at
each hop; an edge sends a circuit-level sendme as soon as enough data
cells have arrived (regardless of whether the data cells were flushed
to the exit conns). removed the 'connected' cell type, since it's now
a topic command within data cells.

at the edge of the circuit, there can be multiple connections associated
with a single circuit. you find them via the linked list conn->next_topic.

currently each new ap connection starts its own circuit, so we ought
to see comparable performance to what we had before. but that's only
because i haven't written the code to reattach to old circuits. please
try to break it as-is, and then i'll make it reuse the same circuit and
we'll try to break that.


svn:r152
2003-01-26 09:02:24 +00:00
Roger Dingledine 62406fb790 splay and rbtree implementations, by niels provos
taken from openbsd


svn:r151
2002-12-31 15:05:07 +00:00
Roger Dingledine c068ac3c59 use a rbtree for replay detection, rather than linear search
when we had lots of new onions coming in, we were using 40% of
our time searching through the tracked_onions linked list.


svn:r150
2002-12-31 15:04:14 +00:00
Roger Dingledine 45739fe1af give us more aci-space
svn:r149
2002-12-30 08:51:41 +00:00
Roger Dingledine 65cf866e25 bugfix: couldn't send two creates, two datas, and the destroy all at once
(amazing the odd behavior you get to test when you have a flaky modem
connection)


svn:r148
2002-12-23 06:48:14 +00:00
Roger Dingledine bde952c8ae starting to document what clients need to do and why
svn:r147
2002-12-12 22:53:34 +00:00
Roger Dingledine 94efdccbb6 onions go on and off the network correctly now
we're closer to an OS X port
 CVS: ----------------------------------------------------------------------


svn:r146
2002-12-03 22:18:23 +00:00
Roger Dingledine fd3091d907 onions expire after a day, not an hour
this was a major faq, because it would fail with an error only on
the *server* side when the client-side time was wrong. the client would
simply not work.


svn:r145
2002-12-03 07:06:13 +00:00
Roger Dingledine 31b771efef was leaking 28 bytes every 100 minutes
svn:r144
2002-12-03 05:12:30 +00:00
Roger Dingledine 3148ad270a two more rare race conditions
svn:r143
2002-11-28 07:32:30 +00:00
Roger Dingledine c39f77b134 create cells are now queued and processed only when idle
we also queue data cells destined for a circuit that is
pending, and process them once the circuit opens

destroys reach into the queue and remove the pending onion,
along with its collected data cells


svn:r142
2002-11-27 04:08:20 +00:00
Roger Dingledine f1b4ca5faf removing more unused files
svn:r141
2002-11-25 01:22:34 +00:00
Roger Dingledine 95d20bcb7c per-second cell statistics to help with profiling
svn:r140
2002-11-24 08:45:54 +00:00
Roger Dingledine e7af04bd7d added milliseconds to log lines
svn:r139
2002-11-24 08:45:13 +00:00
Roger Dingledine 7fdc374dfb fixed rare race condition
svn:r138
2002-11-24 08:33:15 +00:00
Roger Dingledine a5f47a1e48 added OnionsPerSecond to prevent create flooding
first cut, probably needs more playing with


svn:r137
2002-11-23 08:49:03 +00:00
Roger Dingledine 9d55882e0b remove popt dependency, consolidate config stuff
reformat parts of onion.c


svn:r136
2002-11-23 06:49:01 +00:00
Roger Dingledine 863db974e0 fix subtle race condition
If you weren't connected to a given router, and you made a directory
request to it simultaneously with a new web query that caused you to
want to connect to that OR... it would think you're already connected.


svn:r135
2002-10-14 06:44:48 +00:00
Roger Dingledine 3b58047d8d expire unfinished handshakes too
don't list non-open ORs in the directory


svn:r134
2002-10-13 13:17:27 +00:00
Roger Dingledine bddf92469d cell.c is now obsolete
svn:r133
2002-10-03 02:17:41 +00:00
Roger Dingledine 6dabcaa66f cleanup and a variety of bugfixes
svn:r132
2002-10-02 22:54:20 +00:00
Nick Mathewson ad302f1668 Add convenience functions to wrap create and init for symmetric ciphers; clean up error handling in onion.c
svn:r131
2002-10-02 20:39:51 +00:00
Roger Dingledine e95694094b cell now has a network appearance and an internal (struct) appearance
svn:r130
2002-10-02 20:12:44 +00:00
Roger Dingledine ba26c76be8 preemptive bugfix
svn:r129
2002-10-02 04:07:33 +00:00
Roger Dingledine 9caa0a3796 why's it called tor?
svn:r128
2002-10-02 03:44:12 +00:00
Roger Dingledine 6d9f8c8a75 a frequently asked questions list, with some answers
svn:r127
2002-10-02 03:25:10 +00:00
Roger Dingledine 9f3f5a7bfe all listeners listen on 0.0.0.0 except AP which listens on 127.0.0.1
svn:r126
2002-10-02 01:03:00 +00:00
Roger Dingledine 03ef523405 introduced a periodic keepalive padding cell
now tor can be run safely inside nat'ed areas that kill idle
connections; and the proxy can handle when you suspend your laptop
and then emerge hours later from a new domain.


svn:r125
2002-10-01 23:37:31 +00:00
Roger Dingledine 4703c35c46 handle banners from the server side
(text that it spits out immediately upon connect)


svn:r124
2002-10-01 05:46:48 +00:00
Roger Dingledine 03341404d1 more robust http(ish) handling
svn:r123
2002-09-28 05:53:00 +00:00
Roger Dingledine 4dc8afded6 adding town-square rc info
svn:r122
2002-09-28 05:52:47 +00:00
Roger Dingledine 7f827c75ac catch hup to reload directory/router list
svn:r121
2002-09-28 01:40:11 +00:00
Roger Dingledine 12bd9ff13c cleanup
prkey is only fetched when it's needed
tor nodes who aren't dirservers now fetch directories and autoconnect
  to new nodes listed in the directory
default role is a non-dirserver node


svn:r120
2002-09-28 00:52:59 +00:00
Roger Dingledine 7144556a01 mozilla actually cares about the reply version
tor can now interface directly with mozilla, as a socks 4 host.
but note that mozilla does the dns resolution itself, so you're leaking
anonymity.


svn:r119
2002-09-27 23:34:51 +00:00
Roger Dingledine e29d10a858 support socks4 too
svn:r118
2002-09-27 23:16:39 +00:00
Roger Dingledine 29a24dda6a don't leak memory on pk ops
svn:r117
2002-09-27 22:13:22 +00:00
Roger Dingledine 836354ca01 actually writing down the current license state
svn:r116
2002-09-27 02:46:29 +00:00
Roger Dingledine 8fee8f0c37 new config files, including directory servers
svn:r115
2002-09-26 23:53:21 +00:00
Roger Dingledine e4d3205290 stop duplicate free
svn:r114
2002-09-26 13:19:13 +00:00
Roger Dingledine e5c8042889 dirserver should include itself in the directory
if connecting to a dirserver fails, remove it from the router array


svn:r113
2002-09-26 13:17:14 +00:00
Roger Dingledine d00dba1fc7 directory servers in and functional
proxies now periodically pull down an hourly-updated directory,
and replace their router list with it if it parses correctly.


svn:r112
2002-09-26 12:09:10 +00:00
Roger Dingledine 6be514e6e3 another bugfix on the proxy side
should be more reliable now (?)


svn:r111
2002-09-26 05:50:51 +00:00
Roger Dingledine e32d2c55b1 laying the groundwork for dynamic router lists
revamped the router reading section

reference counting for crypto pk env's (so we can dup them)

we now read and write pem pk keys from string rather than from FILE*,
  in anticipation of fetching directories over a socket
  (so now on startup we slurp in the whole file, then parse it as a string)

fixed a bug in the proxy side, where you could get some circuits
  wedged if they showed up while the connection was being made


svn:r110
2002-09-24 10:43:57 +00:00
Roger Dingledine 011e0a6d1e added the 'quickstart' to the README
svn:r109
2002-09-23 19:16:00 +00:00
Roger Dingledine 2b83f6b461 more robust when only some of the socks info has arrived
svn:r108
2002-09-23 01:04:59 +00:00
Roger Dingledine 2c6a07d923 onion proxy now speaks socks4a
httpap is obsolete; we support privoxy directly now!

smtpap is obsolete; need to find a good socks4a-enabled smtp proxy/client

I dub thee 0.0.1.


svn:r107
2002-09-22 11:09:07 +00:00
Roger Dingledine 76359bff91 kill -USR1 the or and it will dump conn/circuit stats to stdout
svn:r106
2002-09-21 22:41:48 +00:00
Roger Dingledine 79c753d383 OP was hanging on first try if connect finishes too quickly
svn:r105
2002-09-20 19:33:13 +00:00