]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Fri, 5 Mar 2004 05:48:28 +0000 (05:48 +0000)]
New, more flexible directory parsing backend. Uses a bit more RAM, but implements the new spec. Uses more RAM, but not so you would notice.
svn:r1235
Roger Dingledine [Thu, 4 Mar 2004 21:40:38 +0000 (21:40 +0000)]
changelog for pre25
svn:r1233
Roger Dingledine [Thu, 4 Mar 2004 21:26:23 +0000 (21:26 +0000)]
make workers explain their death better when tor dies
and make them say it at log level info rather than err
svn:r1232
Roger Dingledine [Thu, 4 Mar 2004 20:49:38 +0000 (20:49 +0000)]
bugfix: don't pass complex things to the connection_mark_for_close macro
svn:r1231
Nick Mathewson [Thu, 4 Mar 2004 18:43:44 +0000 (18:43 +0000)]
Clean up dns->connection_mark_for_close->dns_remove path
svn:r1230
Roger Dingledine [Thu, 4 Mar 2004 17:19:32 +0000 (17:19 +0000)]
ok ok only requires root if it requires root
svn:r1229
Roger Dingledine [Thu, 4 Mar 2004 17:17:24 +0000 (17:17 +0000)]
note that make install requires root
svn:r1228
Nick Mathewson [Thu, 4 Mar 2004 04:01:28 +0000 (04:01 +0000)]
Make decriptor format more flexible and extensible
svn:r1227
Roger Dingledine [Thu, 4 Mar 2004 01:53:56 +0000 (01:53 +0000)]
Store options->Address as IP, not hostname
And figure it out while reading config, not every time you
rebuild the descriptor
svn:r1226
Nick Mathewson [Wed, 3 Mar 2004 22:49:15 +0000 (22:49 +0000)]
Try to find out early if buffers get trashed or double-freed.
svn:r1225
Peter Palfrader [Wed, 3 Mar 2004 13:23:19 +0000 (13:23 +0000)]
Wait for tor to die in init stop. Let the user know if it doesn't
svn:r1223
Peter Palfrader [Wed, 3 Mar 2004 12:56:04 +0000 (12:56 +0000)]
Always enable DataDirectory, requires dpatch
svn:r1222
Peter Palfrader [Wed, 3 Mar 2004 12:33:40 +0000 (12:33 +0000)]
Add "# ulimit -c unlimited" to tor.default
svn:r1221
Peter Palfrader [Wed, 3 Mar 2004 12:32:21 +0000 (12:32 +0000)]
Do not strip binaries for now
svn:r1220
Peter Palfrader [Wed, 3 Mar 2004 12:31:04 +0000 (12:31 +0000)]
New upstream release
svn:r1219
Roger Dingledine [Wed, 3 Mar 2004 09:55:14 +0000 (09:55 +0000)]
bump cvs to pre25
svn:r1218
Roger Dingledine [Wed, 3 Mar 2004 09:41:13 +0000 (09:41 +0000)]
commit the pre24 changelog
svn:r1216
Roger Dingledine [Wed, 3 Mar 2004 08:48:32 +0000 (08:48 +0000)]
and a minor patch
svn:r1215
Roger Dingledine [Wed, 3 Mar 2004 08:46:18 +0000 (08:46 +0000)]
holding until flush was borked
we were never writing anything when hold_open_until_flushed was set,
since conn_write returns early if marked_for_conn is set.
seems a bit better now.
svn:r1214
Roger Dingledine [Wed, 3 Mar 2004 07:26:58 +0000 (07:26 +0000)]
better debugging for lonely flushes
svn:r1213
Roger Dingledine [Wed, 3 Mar 2004 07:26:34 +0000 (07:26 +0000)]
close immediately when write() fails too, else things will turn bad
svn:r1212
Roger Dingledine [Wed, 3 Mar 2004 07:24:53 +0000 (07:24 +0000)]
don't mark_for_close again when the destroy arrives after the end cell
svn:r1211
Roger Dingledine [Wed, 3 Mar 2004 06:26:34 +0000 (06:26 +0000)]
use conn->hold_open_until_flushed for streams
and also note/fix a variety of other stream-based bugs
svn:r1210
Nick Mathewson [Wed, 3 Mar 2004 05:08:01 +0000 (05:08 +0000)]
Implement hold_open_until_flushed. I may have missed something important.
svn:r1209
Roger Dingledine [Wed, 3 Mar 2004 04:54:16 +0000 (04:54 +0000)]
make socks5 not give a spurious warning
also rename AP_CONN_STATE_CONNECTING to _CONNECT_WAIT
svn:r1208
Roger Dingledine [Wed, 3 Mar 2004 04:11:18 +0000 (04:11 +0000)]
reenable part of assert_circuit_ok, leave some still disabled
svn:r1207
Roger Dingledine [Wed, 3 Mar 2004 03:02:06 +0000 (03:02 +0000)]
make circuit-building less noisy when a node in your exclude/exit/entrynodes is down
svn:r1206
Nick Mathewson [Wed, 3 Mar 2004 02:24:17 +0000 (02:24 +0000)]
Fix (maybe) assert_circuit_ok. leave it disabled till arma confirms
svn:r1205
Nick Mathewson [Wed, 3 Mar 2004 02:14:35 +0000 (02:14 +0000)]
remove redundant check
svn:r1204
Nick Mathewson [Wed, 3 Mar 2004 02:07:57 +0000 (02:07 +0000)]
warn more when losing data on closed/marked connections.
svn:r1203
Roger Dingledine [Wed, 3 Mar 2004 01:58:45 +0000 (01:58 +0000)]
bugfix: close_immediate called buf_clear but listeners don't have bufs
svn:r1202
Nick Mathewson [Wed, 3 Mar 2004 01:37:54 +0000 (01:37 +0000)]
Nth time is the charm on list manip.
svn:r1201
Roger Dingledine [Tue, 2 Mar 2004 19:28:15 +0000 (19:28 +0000)]
fix the rpm spec description again
svn:r1200
Nick Mathewson [Tue, 2 Mar 2004 19:09:30 +0000 (19:09 +0000)]
Integrate jbash's RPM spec into build process. (Requires "rpmbuild" to
build properly. Works fine on redhat 9. YMMV.)
svn:r1199
Roger Dingledine [Tue, 2 Mar 2004 18:08:07 +0000 (18:08 +0000)]
fix a pair of lurking segfaults
svn:r1198
Nick Mathewson [Tue, 2 Mar 2004 17:48:17 +0000 (17:48 +0000)]
Split out mark_for_close with circuits. Seems to work for me.
svn:r1197
Nick Mathewson [Tue, 2 Mar 2004 07:24:11 +0000 (07:24 +0000)]
Fix assertion failure spotted by arma.
Apparently, when a DNS failure was already cached, then when we tried
to mark the exit connection as closed, we'd try to remove it from the
pending queue anyway, and hit an assert. Now, we put failed-resolve
connections in a separate state so that mark_for_close does the right
thing.
svn:r1196
Roger Dingledine [Tue, 2 Mar 2004 05:19:01 +0000 (05:19 +0000)]
add --version, note that --help is probably obsolete
svn:r1195
Roger Dingledine [Tue, 2 Mar 2004 05:00:50 +0000 (05:00 +0000)]
make config_assign fail rather than warn for unrecognized config options
svn:r1194
Roger Dingledine [Tue, 2 Mar 2004 04:59:52 +0000 (04:59 +0000)]
make parse_line_from_file fail rather than warn for malformed lines
svn:r1193
Roger Dingledine [Mon, 1 Mar 2004 12:37:45 +0000 (12:37 +0000)]
note an assert trigger bug
nick, want to fix this? :)
svn:r1192
Roger Dingledine [Mon, 1 Mar 2004 06:58:21 +0000 (06:58 +0000)]
update the todo
svn:r1191
Nick Mathewson [Mon, 1 Mar 2004 06:45:32 +0000 (06:45 +0000)]
make 'make test' exit(1) if a test fails.
svn:r1190
Nick Mathewson [Mon, 1 Mar 2004 05:56:34 +0000 (05:56 +0000)]
revise spec. It still needs more explanation to be intelligible by the uninitiated, but it is at least far less incorrect.
svn:r1189
Roger Dingledine [Sun, 29 Feb 2004 22:34:38 +0000 (22:34 +0000)]
put switch_id and start_daemon earlier
svn:r1188
Roger Dingledine [Sun, 29 Feb 2004 22:07:44 +0000 (22:07 +0000)]
fix duplicate call to connection_mark_for_close
svn:r1187
Roger Dingledine [Sun, 29 Feb 2004 22:04:52 +0000 (22:04 +0000)]
bugfix: we were checking the wrong thing to see if 'reason'
was out of range
svn:r1186
Peter Palfrader [Sun, 29 Feb 2004 13:34:43 +0000 (13:34 +0000)]
New upstream release.
Upstream tests got fixed
svn:r1184
Roger Dingledine [Sun, 29 Feb 2004 11:25:52 +0000 (11:25 +0000)]
bump cvs to pre24
svn:r1183
Roger Dingledine [Sun, 29 Feb 2004 11:13:14 +0000 (11:13 +0000)]
changelog for pre23
svn:r1181
Roger Dingledine [Sun, 29 Feb 2004 09:15:29 +0000 (09:15 +0000)]
when a stream is 15s late, print out the circuit at -l warn
svn:r1180
Roger Dingledine [Sun, 29 Feb 2004 03:52:38 +0000 (03:52 +0000)]
print a statement when the first circ is finished,
so the user knows it's working
svn:r1179
Roger Dingledine [Sun, 29 Feb 2004 01:31:33 +0000 (01:31 +0000)]
bugfix: only warn about an unrouter router after we've fetched a directory
svn:r1178
Roger Dingledine [Sun, 29 Feb 2004 00:15:20 +0000 (00:15 +0000)]
disable buffer tests, until we rewrite them (one of them fails)
svn:r1177
Roger Dingledine [Sun, 29 Feb 2004 00:11:37 +0000 (00:11 +0000)]
create a separate connection_edge_destroy() function
svn:r1176
Roger Dingledine [Sat, 28 Feb 2004 23:56:50 +0000 (23:56 +0000)]
bugfix: when we time out on a stream and detach, send an end first
svn:r1175
Roger Dingledine [Sat, 28 Feb 2004 23:52:56 +0000 (23:52 +0000)]
bugfix: in some cases, connection_mark_for_close wasn't marking the conn
svn:r1174
Roger Dingledine [Sat, 28 Feb 2004 23:31:15 +0000 (23:31 +0000)]
clearer warning message
svn:r1173
Roger Dingledine [Sat, 28 Feb 2004 23:30:41 +0000 (23:30 +0000)]
disallow changing from ORPort==0 to ORPort>0 on hup
svn:r1172
Roger Dingledine [Sat, 28 Feb 2004 23:23:06 +0000 (23:23 +0000)]
cwd to datadir if it's defined, rather than /
this way people can get cores if they want to
svn:r1171
Roger Dingledine [Sat, 28 Feb 2004 23:21:29 +0000 (23:21 +0000)]
bugfix: stop trying to write to a stderr that may not be there
also, tell start_daemon our desired cwd
svn:r1170
Roger Dingledine [Sat, 28 Feb 2004 22:34:47 +0000 (22:34 +0000)]
fix the function comment
svn:r1169
Nick Mathewson [Sat, 28 Feb 2004 22:23:44 +0000 (22:23 +0000)]
Split dns_cancel_pending_resolve into dns_cancel_pending_resolve (kill a
resolve in response to a DNS worker dying) and connection_dns_remove (remove
a pending connection from the resolve structure.)
svn:r1168
Roger Dingledine [Sat, 28 Feb 2004 22:13:58 +0000 (22:13 +0000)]
add a log_warn to notify us of yet another potential dns.c bug
svn:r1167
Nick Mathewson [Sat, 28 Feb 2004 22:06:59 +0000 (22:06 +0000)]
Make dns_cancel_pending_resolve less agressive.
svn:r1166
Nick Mathewson [Sat, 28 Feb 2004 21:52:58 +0000 (21:52 +0000)]
Fix bug on dns_found_answer from mark_to_close stuff.
svn:r1165
Roger Dingledine [Sat, 28 Feb 2004 21:49:10 +0000 (21:49 +0000)]
remove assert from dns.c that's no longer true:
typically the resolve will be pending, but it could be failed if it
just failed and we're working through the 'pending' list, or it could
be valid if some other dnsworker raced us to fill in the entry.
svn:r1164
Nick Mathewson [Sat, 28 Feb 2004 19:14:11 +0000 (19:14 +0000)]
Stop trying to flush on broken sockets marked for close.
svn:r1163
Roger Dingledine [Sat, 28 Feb 2004 11:48:22 +0000 (11:48 +0000)]
some comments to point nick at the latest bugs
svn:r1162
Roger Dingledine [Sat, 28 Feb 2004 11:44:07 +0000 (11:44 +0000)]
better explain exit policies in the torrc
svn:r1161
Roger Dingledine [Sat, 28 Feb 2004 07:51:30 +0000 (07:51 +0000)]
enable assert_connection_ok()
we weren't actually asserting much. oops.
svn:r1160
Roger Dingledine [Sat, 28 Feb 2004 07:48:28 +0000 (07:48 +0000)]
note bug in assert_connection_ok
svn:r1159
Roger Dingledine [Sat, 28 Feb 2004 07:01:22 +0000 (07:01 +0000)]
clean up some log messages and severities
still plenty more left to clean
svn:r1158
Roger Dingledine [Sat, 28 Feb 2004 05:22:07 +0000 (05:22 +0000)]
make flush_buf have a sane return convention
svn:r1157
Roger Dingledine [Sat, 28 Feb 2004 05:11:10 +0000 (05:11 +0000)]
document 'excludenodes' in man page
svn:r1156
Roger Dingledine [Sat, 28 Feb 2004 05:09:37 +0000 (05:09 +0000)]
rename ExcludedNodes config option to ExcludeNodes
svn:r1155
Roger Dingledine [Sat, 28 Feb 2004 04:53:34 +0000 (04:53 +0000)]
a few more comments for the spec
svn:r1154
Roger Dingledine [Sat, 28 Feb 2004 04:48:46 +0000 (04:48 +0000)]
if a relay cell is unrecognized at the end of the circuit,
send back a destroy
svn:r1153
Roger Dingledine [Sat, 28 Feb 2004 04:44:48 +0000 (04:44 +0000)]
some more small fixes
svn:r1152
Nick Mathewson [Sat, 28 Feb 2004 04:34:27 +0000 (04:34 +0000)]
make code more readable; arrbitrarily change a -1 to a 0.
svn:r1151
Nick Mathewson [Sat, 28 Feb 2004 04:25:54 +0000 (04:25 +0000)]
Stop answering "end" with "end"
svn:r1150
Nick Mathewson [Sat, 28 Feb 2004 04:11:53 +0000 (04:11 +0000)]
Push responsibility for connection marking down as far as possible; have only a close path; add some missing end cells; change return conventions a little.
svn:r1149
Nick Mathewson [Sat, 28 Feb 2004 03:06:31 +0000 (03:06 +0000)]
Make has_sent_end irrelevant: only try to send end if reason is nonzero
svn:r1148
Roger Dingledine [Fri, 27 Feb 2004 23:30:27 +0000 (23:30 +0000)]
and another one
svn:r1147
Roger Dingledine [Fri, 27 Feb 2004 23:23:33 +0000 (23:23 +0000)]
patches/answers to nick's commit
svn:r1146
Nick Mathewson [Fri, 27 Feb 2004 22:00:26 +0000 (22:00 +0000)]
Refactor mark_for_close, connection_edge_end and friends. Now, everybody
who wants to shut down a connection calls connection_mark_for_close instead
of setting marked_for_close to 1. This automatically removes the connection
from the DNS cache if needed, sends a RELAY END cell if appropriate, and can
be changed to do whatever else is needed.
Still to do:
- The same for circuits, maybe.
- Add some kind of hold_connection_open_until_flushed flag, maybe.
- Change stuff that closes connections with return -1 to use mark_for_close,
maybe.
svn:r1145
Roger Dingledine [Fri, 27 Feb 2004 04:59:32 +0000 (04:59 +0000)]
bump cvs to pre23
svn:r1144
Roger Dingledine [Fri, 27 Feb 2004 04:52:02 +0000 (04:52 +0000)]
make 'connected' cells include the resolved IP
svn:r1143
Roger Dingledine [Fri, 27 Feb 2004 04:42:14 +0000 (04:42 +0000)]
Fix a bug where you might flush some data on a tls connection, and then
add some more data to be flushed but never turn POLLOUT on. not sure
how commonly this bug was hit, but it would be a doozy.
Also add some asserts to see if it happens elsewhere.
svn:r1142
Roger Dingledine [Fri, 27 Feb 2004 04:08:44 +0000 (04:08 +0000)]
we forgot to include the resolved IP in 'connected' cells
so the client-side dns cache is currently going unused
we should do that sometime
svn:r1141
Roger Dingledine [Fri, 27 Feb 2004 01:59:36 +0000 (01:59 +0000)]
clean up an ia64 warning
svn:r1140
Peter Palfrader [Fri, 27 Feb 2004 01:33:02 +0000 (01:33 +0000)]
Give the nice message about not being an HTTP proxy an <h1> headline
svn:r1139
Peter Palfrader [Fri, 27 Feb 2004 01:07:38 +0000 (01:07 +0000)]
New upstream version. Tor stays in sbin in Debian
svn:r1137
Roger Dingledine [Fri, 27 Feb 2004 00:55:31 +0000 (00:55 +0000)]
changelog entries for pre22
svn:r1135
Nick Mathewson [Fri, 27 Feb 2004 00:24:08 +0000 (00:24 +0000)]
Dont use -eq for =; make TORGROUP and TORUSER independent
svn:r1134
Nick Mathewson [Fri, 27 Feb 2004 00:07:33 +0000 (00:07 +0000)]
Make init script work with chkconfig; make it put pids in /var/run/tor (not /var/run) and allow it to su as needed (based on tor.spec)
svn:r1133
Roger Dingledine [Thu, 26 Feb 2004 23:36:31 +0000 (23:36 +0000)]
and another desired todo item
svn:r1132
Roger Dingledine [Thu, 26 Feb 2004 23:05:11 +0000 (23:05 +0000)]
bring the todo file up to date
svn:r1131
Roger Dingledine [Thu, 26 Feb 2004 22:56:36 +0000 (22:56 +0000)]
When it can't resolve any dirservers, it was useless from then on.
Now it reloads the RouterFile (or default dirservers) if it has no
dirservers.
svn:r1130
Roger Dingledine [Thu, 26 Feb 2004 22:30:44 +0000 (22:30 +0000)]
break out the operations done on sighup into their own function
svn:r1129