]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
21 years agoNew, more flexible directory parsing backend. Uses a bit more RAM, but implements...
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

21 years agochangelog for pre25 tor-0.0.2pre25
Roger Dingledine [Thu, 4 Mar 2004 21:40:38 +0000 (21:40 +0000)] 
changelog for pre25

svn:r1233

21 years agomake workers explain their death better when tor dies
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

21 years agobugfix: don't pass complex things to the connection_mark_for_close macro
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

21 years agoClean up dns->connection_mark_for_close->dns_remove path
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

21 years agook ok only requires root if it requires root
Roger Dingledine [Thu, 4 Mar 2004 17:19:32 +0000 (17:19 +0000)] 
ok ok only requires root if it requires root

svn:r1229

21 years agonote that make install requires root
Roger Dingledine [Thu, 4 Mar 2004 17:17:24 +0000 (17:17 +0000)] 
note that make install requires root

svn:r1228

21 years agoMake decriptor format more flexible and extensible
Nick Mathewson [Thu, 4 Mar 2004 04:01:28 +0000 (04:01 +0000)] 
Make decriptor format more flexible and extensible

svn:r1227

21 years agoStore options->Address as IP, not hostname
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

21 years agoTry to find out early if buffers get trashed or double-freed.
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

21 years agoWait for tor to die in init stop. Let the user know if it doesn't debian-version-0.0.1+0.0.2pre24-1
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

21 years agoAlways enable DataDirectory, requires dpatch
Peter Palfrader [Wed, 3 Mar 2004 12:56:04 +0000 (12:56 +0000)] 
Always enable DataDirectory, requires dpatch

svn:r1222

21 years agoAdd "# ulimit -c unlimited" to tor.default
Peter Palfrader [Wed, 3 Mar 2004 12:33:40 +0000 (12:33 +0000)] 
Add "# ulimit -c unlimited" to tor.default

svn:r1221

21 years agoDo not strip binaries for now
Peter Palfrader [Wed, 3 Mar 2004 12:32:21 +0000 (12:32 +0000)] 
Do not strip binaries for now

svn:r1220

21 years agoNew upstream release
Peter Palfrader [Wed, 3 Mar 2004 12:31:04 +0000 (12:31 +0000)] 
New upstream release

svn:r1219

21 years agobump cvs to pre25
Roger Dingledine [Wed, 3 Mar 2004 09:55:14 +0000 (09:55 +0000)] 
bump cvs to pre25

svn:r1218

21 years agocommit the pre24 changelog tor-0.0.2pre24
Roger Dingledine [Wed, 3 Mar 2004 09:41:13 +0000 (09:41 +0000)] 
commit the pre24 changelog

svn:r1216

21 years agoand a minor patch
Roger Dingledine [Wed, 3 Mar 2004 08:48:32 +0000 (08:48 +0000)] 
and a minor patch

svn:r1215

21 years agoholding until flush was borked
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

21 years agobetter debugging for lonely flushes
Roger Dingledine [Wed, 3 Mar 2004 07:26:58 +0000 (07:26 +0000)] 
better debugging for lonely flushes

svn:r1213

21 years agoclose immediately when write() fails too, else things will turn bad
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

21 years agodon't mark_for_close again when the destroy arrives after the end cell
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

21 years agouse conn->hold_open_until_flushed for streams
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

21 years agoImplement hold_open_until_flushed. I may have missed something important.
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

21 years agomake socks5 not give a spurious warning
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

21 years agoreenable part of assert_circuit_ok, leave some still disabled
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

21 years agomake circuit-building less noisy when a node in your exclude/exit/entrynodes is down
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

21 years agoFix (maybe) assert_circuit_ok. leave it disabled till arma confirms
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

21 years agoremove redundant check
Nick Mathewson [Wed, 3 Mar 2004 02:14:35 +0000 (02:14 +0000)] 
remove redundant check

svn:r1204

21 years agowarn more when losing data on closed/marked connections.
Nick Mathewson [Wed, 3 Mar 2004 02:07:57 +0000 (02:07 +0000)] 
warn more when losing data on closed/marked connections.

svn:r1203

21 years agobugfix: close_immediate called buf_clear but listeners don't have bufs
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

21 years agoNth time is the charm on list manip.
Nick Mathewson [Wed, 3 Mar 2004 01:37:54 +0000 (01:37 +0000)] 
Nth time is the charm on list manip.

svn:r1201

21 years agofix the rpm spec description again
Roger Dingledine [Tue, 2 Mar 2004 19:28:15 +0000 (19:28 +0000)] 
fix the rpm spec description again

svn:r1200

21 years agoIntegrate jbash's RPM spec into build process. (Requires "rpmbuild" to
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

21 years agofix a pair of lurking segfaults
Roger Dingledine [Tue, 2 Mar 2004 18:08:07 +0000 (18:08 +0000)] 
fix a pair of lurking segfaults

svn:r1198

21 years agoSplit out mark_for_close with circuits. Seems to work for me.
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

21 years agoFix assertion failure spotted by arma.
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

21 years agoadd --version, note that --help is probably obsolete
Roger Dingledine [Tue, 2 Mar 2004 05:19:01 +0000 (05:19 +0000)] 
add --version, note that --help is probably obsolete

svn:r1195

21 years agomake config_assign fail rather than warn for unrecognized config options
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

21 years agomake parse_line_from_file fail rather than warn for malformed lines
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

21 years agonote an assert trigger bug
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

21 years agoupdate the todo
Roger Dingledine [Mon, 1 Mar 2004 06:58:21 +0000 (06:58 +0000)] 
update the todo

svn:r1191

21 years agomake 'make test' exit(1) if a test fails.
Nick Mathewson [Mon, 1 Mar 2004 06:45:32 +0000 (06:45 +0000)] 
make 'make test' exit(1) if a test fails.

svn:r1190

21 years agorevise spec. It still needs more explanation to be intelligible by the uninitiated...
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

21 years agoput switch_id and start_daemon earlier
Roger Dingledine [Sun, 29 Feb 2004 22:34:38 +0000 (22:34 +0000)] 
put switch_id and start_daemon earlier

svn:r1188

21 years agofix duplicate call to connection_mark_for_close
Roger Dingledine [Sun, 29 Feb 2004 22:07:44 +0000 (22:07 +0000)] 
fix duplicate call to connection_mark_for_close

svn:r1187

21 years agobugfix: we were checking the wrong thing to see if 'reason'
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

21 years agoNew upstream release. debian-version-0.0.1+0.0.2pre23-1
Peter Palfrader [Sun, 29 Feb 2004 13:34:43 +0000 (13:34 +0000)] 
New upstream release.
Upstream tests got fixed

svn:r1184

21 years agobump cvs to pre24
Roger Dingledine [Sun, 29 Feb 2004 11:25:52 +0000 (11:25 +0000)] 
bump cvs to pre24

svn:r1183

21 years agochangelog for pre23 tor-0.0.2pre23
Roger Dingledine [Sun, 29 Feb 2004 11:13:14 +0000 (11:13 +0000)] 
changelog for pre23

svn:r1181

21 years agowhen a stream is 15s late, print out the circuit at -l warn
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

21 years agoprint a statement when the first circ is finished,
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

21 years agobugfix: only warn about an unrouter router after we've fetched a directory
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

21 years agodisable buffer tests, until we rewrite them (one of them fails)
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

21 years agocreate a separate connection_edge_destroy() function
Roger Dingledine [Sun, 29 Feb 2004 00:11:37 +0000 (00:11 +0000)] 
create a separate connection_edge_destroy() function

svn:r1176

21 years agobugfix: when we time out on a stream and detach, send an end first
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

21 years agobugfix: in some cases, connection_mark_for_close wasn't marking the conn
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

21 years agoclearer warning message
Roger Dingledine [Sat, 28 Feb 2004 23:31:15 +0000 (23:31 +0000)] 
clearer warning message

svn:r1173

21 years agodisallow changing from ORPort==0 to ORPort>0 on hup
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

21 years agocwd to datadir if it's defined, rather than /
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

21 years agobugfix: stop trying to write to a stderr that may not be there
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

21 years agofix the function comment
Roger Dingledine [Sat, 28 Feb 2004 22:34:47 +0000 (22:34 +0000)] 
fix the function comment

svn:r1169

21 years agoSplit dns_cancel_pending_resolve into dns_cancel_pending_resolve (kill a
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

21 years agoadd a log_warn to notify us of yet another potential dns.c bug
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

21 years agoMake dns_cancel_pending_resolve less agressive.
Nick Mathewson [Sat, 28 Feb 2004 22:06:59 +0000 (22:06 +0000)] 
Make dns_cancel_pending_resolve less agressive.

svn:r1166

21 years agoFix bug on dns_found_answer from mark_to_close stuff.
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

21 years agoremove assert from dns.c that's no longer true:
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

21 years agoStop trying to flush on broken sockets marked for close.
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

21 years agosome comments to point nick at the latest bugs
Roger Dingledine [Sat, 28 Feb 2004 11:48:22 +0000 (11:48 +0000)] 
some comments to point nick at the latest bugs

svn:r1162

21 years agobetter explain exit policies in the torrc
Roger Dingledine [Sat, 28 Feb 2004 11:44:07 +0000 (11:44 +0000)] 
better explain exit policies in the torrc

svn:r1161

21 years agoenable assert_connection_ok()
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

21 years agonote bug in assert_connection_ok
Roger Dingledine [Sat, 28 Feb 2004 07:48:28 +0000 (07:48 +0000)] 
note bug in assert_connection_ok

svn:r1159

21 years agoclean up some log messages and severities
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

21 years agomake flush_buf have a sane return convention
Roger Dingledine [Sat, 28 Feb 2004 05:22:07 +0000 (05:22 +0000)] 
make flush_buf have a sane return convention

svn:r1157

21 years agodocument 'excludenodes' in man page
Roger Dingledine [Sat, 28 Feb 2004 05:11:10 +0000 (05:11 +0000)] 
document 'excludenodes' in man page

svn:r1156

21 years agorename ExcludedNodes config option to ExcludeNodes
Roger Dingledine [Sat, 28 Feb 2004 05:09:37 +0000 (05:09 +0000)] 
rename ExcludedNodes config option to ExcludeNodes

svn:r1155

21 years agoa few more comments for the spec
Roger Dingledine [Sat, 28 Feb 2004 04:53:34 +0000 (04:53 +0000)] 
a few more comments for the spec

svn:r1154

21 years agoif a relay cell is unrecognized at the end of the circuit,
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

21 years agosome more small fixes
Roger Dingledine [Sat, 28 Feb 2004 04:44:48 +0000 (04:44 +0000)] 
some more small fixes

svn:r1152

21 years agomake code more readable; arrbitrarily change a -1 to a 0.
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

21 years agoStop answering "end" with "end"
Nick Mathewson [Sat, 28 Feb 2004 04:25:54 +0000 (04:25 +0000)] 
Stop answering "end" with "end"

svn:r1150

21 years agoPush responsibility for connection marking down as far as possible; have only a close...
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

21 years agoMake has_sent_end irrelevant: only try to send end if reason is nonzero
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

21 years agoand another one
Roger Dingledine [Fri, 27 Feb 2004 23:30:27 +0000 (23:30 +0000)] 
and another one

svn:r1147

21 years agopatches/answers to nick's commit
Roger Dingledine [Fri, 27 Feb 2004 23:23:33 +0000 (23:23 +0000)] 
patches/answers to nick's commit

svn:r1146

21 years agoRefactor mark_for_close, connection_edge_end and friends. Now, everybody
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

21 years agobump cvs to pre23
Roger Dingledine [Fri, 27 Feb 2004 04:59:32 +0000 (04:59 +0000)] 
bump cvs to pre23

svn:r1144

21 years agomake 'connected' cells include the resolved IP
Roger Dingledine [Fri, 27 Feb 2004 04:52:02 +0000 (04:52 +0000)] 
make 'connected' cells include the resolved IP

svn:r1143

21 years agoFix a bug where you might flush some data on a tls connection, and then
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

21 years agowe forgot to include the resolved IP in 'connected' cells
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

21 years agoclean up an ia64 warning
Roger Dingledine [Fri, 27 Feb 2004 01:59:36 +0000 (01:59 +0000)] 
clean up an ia64 warning

svn:r1140

21 years agoGive the nice message about not being an HTTP proxy an <h1> headline
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

21 years agoNew upstream version. Tor stays in sbin in Debian debian-version-0.0.1+0.0.2pre22-1
Peter Palfrader [Fri, 27 Feb 2004 01:07:38 +0000 (01:07 +0000)] 
New upstream version.  Tor stays in sbin in Debian

svn:r1137

21 years agochangelog entries for pre22 tor-0.0.2pre22
Roger Dingledine [Fri, 27 Feb 2004 00:55:31 +0000 (00:55 +0000)] 
changelog entries for pre22

svn:r1135

21 years agoDont use -eq for =; make TORGROUP and TORUSER independent
Nick Mathewson [Fri, 27 Feb 2004 00:24:08 +0000 (00:24 +0000)] 
Dont use -eq for =; make TORGROUP and TORUSER independent

svn:r1134

21 years agoMake init script work with chkconfig; make it put pids in /var/run/tor (not /var...
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

21 years agoand another desired todo item
Roger Dingledine [Thu, 26 Feb 2004 23:36:31 +0000 (23:36 +0000)] 
and another desired todo item

svn:r1132

21 years agobring the todo file up to date
Roger Dingledine [Thu, 26 Feb 2004 23:05:11 +0000 (23:05 +0000)] 
bring the todo file up to date

svn:r1131

21 years agoWhen it can't resolve any dirservers, it was useless from then on.
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

21 years agobreak out the operations done on sighup into their own function
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