Roger Dingledine
1599a6f033
there is yet another dns-pending-conn-clobbering bug
...
somewhere
svn:r1354
2004-03-28 04:54:36 +00:00
Roger Dingledine
06163f26f7
work around a tsocks bug
...
when an AP connection dies early, be sure to do a socks reject
for it. if you just hang up, tsocks goes into an infinite loop.
svn:r1352
2004-03-27 05:45:52 +00:00
Roger Dingledine
94b4b4cf14
fix an assert trigger where an OP would fail to handshake, and we'd
...
expect it to have a nickname.
svn:r1351
2004-03-27 01:28:14 +00:00
Roger Dingledine
4a4e64d5ca
only build circuits after we've fetched the directory
...
this resolves a subtle bug where tor clients were preferentially using
the directory servers, since when they start building circuits they
know only about the directory servers
on the other hand, it now takes longer after startup before there's
a working circuit. so it goes.
svn:r1350
2004-03-27 00:15:09 +00:00
Roger Dingledine
7136e1df5c
make it less noisy to consider exit policies
...
svn:r1349
2004-03-27 00:13:27 +00:00
Roger Dingledine
7c51cca2db
oops, 0.0.4 is more broken than 0.0.3
...
maybe this will fix it
svn:r1347
2004-03-26 23:37:13 +00:00
Roger Dingledine
a27b2326b9
clean up some 'warn' messages while i'm at it
...
svn:r1342
2004-03-26 22:28:16 +00:00
Roger Dingledine
a54b50557c
fix two assert triggers (darn it, I hate releasing software)
...
when connecting to a dirserver or OR and the network is down,
we would crash.
svn:r1340
2004-03-26 22:07:45 +00:00
Roger Dingledine
06290a639a
a missing comma could wreak all sorts of havoc.
...
svn:r1335
2004-03-26 18:29:05 +00:00
Nick Mathewson
9f05e11051
Remove unused open circuits when there are too many, not when they are too old.
...
svn:r1332
2004-03-21 06:33:57 +00:00
Nick Mathewson
b2c432e0aa
Dont expire circuits we didnt originate. This may be redundant somehow, but better safe than sorry.
...
svn:r1331
2004-03-21 05:01:06 +00:00
Nick Mathewson
999aa4f863
Add an autoconf test for whether unaligned int access is permitted.
...
It works on macos, and works correctly when I twiddle the test code to
generate a spurious segfault. Will it work anywhere else?
svn:r1329
2004-03-21 04:14:06 +00:00
Nick Mathewson
ca1ccfb4fa
Replace all connection_removes outsice of main.c with connection_mark_for_close
...
svn:r1328
2004-03-21 03:18:45 +00:00
Nick Mathewson
30673c022b
Add a RunTesting option to try to learn link state by creating test circuits, even when SocksPort is off.
...
svn:r1327
2004-03-21 03:03:10 +00:00
Nick Mathewson
a24f609651
Add macros and functions to wrap memcpy/alignment logic.
...
svn:r1326
2004-03-21 02:01:17 +00:00
Roger Dingledine
a11a2fc956
catch signals in a more portable way, so solaris can catch them too
...
svn:r1324
2004-03-20 23:27:22 +00:00
Roger Dingledine
cc16a4a86c
make uname() more likely to work on solaris
...
(linux says 0 is success, solaris says 1 is success)
svn:r1322
2004-03-20 21:22:16 +00:00
Roger Dingledine
5805f0d48a
make OR not crash when non-OR connection dies
...
svn:r1319
2004-03-20 20:37:49 +00:00
Roger Dingledine
047f89dbb4
warn and fail if server chose a nickname with illegal characters
...
svn:r1318
2004-03-20 20:28:53 +00:00
Roger Dingledine
dc7d1ef2f3
make servers not crash when they rep-hist-note circuits that don't start at them
...
svn:r1317
2004-03-20 20:21:20 +00:00
Roger Dingledine
055c7ef199
deal with hardware word alignment
...
this was causing the seg faults on sparc processors
i wonder if i got them all.
svn:r1314
2004-03-20 09:30:30 +00:00
Nick Mathewson
69105b3ee4
Integrate the new "rephist" [rep(utation) hist(ory)] module to trace
...
successful/failed connections, successful/failed extends, and
connection uptimes.
It's still not done: more tests are needed, and not everything calls
connection/circuit_mark_for_close properly. This skews the results.
Also, there needs to be a 'testing' mode for non-OP ORs, where they
periodically build circuits just to test whether extends work.
svn:r1313
2004-03-20 04:59:29 +00:00
Nick Mathewson
c39d74b984
Add initial history-tracking backend code for reputation module. Not called or tested yet.
...
svn:r1310
2004-03-20 01:48:05 +00:00
Nick Mathewson
bf6b37ae71
Use strmap code for client DNS.
...
svn:r1309
2004-03-20 01:21:19 +00:00
Nick Mathewson
3d9d9e9c6b
Add some wrappers around SPLAY_* for the common map-from-string-to-X case.
...
It will probably be less blindingly fast than using SPLAY_* directly, but
only slightly so.
svn:r1306
2004-03-19 22:07:24 +00:00
Roger Dingledine
8acfdef78b
getpid returns a pid_t. we all know that's an int. but solaris doesn't know.
...
svn:r1305
2004-03-19 21:34:04 +00:00
Roger Dingledine
b651feeaf6
isspace and friends take an int. solaris cares.
...
svn:r1303
2004-03-19 20:50:12 +00:00
Roger Dingledine
de5009d066
ship strlcat and strlcpy with the tarball, but don't compile them
...
svn:r1297
2004-03-19 06:39:52 +00:00
Roger Dingledine
a3e62bb56e
define INADDR_NONE so we compile on solaris
...
svn:r1295
2004-03-18 19:59:39 +00:00
Roger Dingledine
e432107944
clean up some presentation and comments
...
svn:r1294
2004-03-18 19:22:56 +00:00
Nick Mathewson
88222749db
Include strlcpy and strlcat where not available, so our string ops can be less error-prone.
...
svn:r1289
2004-03-17 07:28:09 +00:00
Roger Dingledine
591d64fdae
make directory format tests quiet again
...
svn:r1287
2004-03-15 05:13:25 +00:00
Roger Dingledine
2fa8ad0ee3
make it warn about internal IPs not only if we had to guess,
...
but also if they used a hostname rather than an IP
svn:r1285
2004-03-15 04:57:24 +00:00
Roger Dingledine
4f7e863eac
only complain about private IPs if we had to guess
...
svn:r1279
2004-03-15 04:04:16 +00:00
Roger Dingledine
2d1ad72ef8
and another one
...
svn:r1278
2004-03-15 04:00:14 +00:00
Roger Dingledine
bea63e3f5d
fix a byte order bug
...
svn:r1277
2004-03-15 04:00:11 +00:00
Roger Dingledine
24e0d8a612
bugfix: address that strcat vulnerability in circuit.c
...
svn:r1273
2004-03-14 22:47:11 +00:00
Roger Dingledine
9763f06d1a
prevent servers from publishing an internal IP as their address
...
svn:r1272
2004-03-14 18:12:59 +00:00
Roger Dingledine
4e76b97d94
teach us to recognize internal IPs
...
svn:r1271
2004-03-14 18:07:46 +00:00
Roger Dingledine
0359552e87
bugfix: decrement OR connections from global_bucket too
...
bugfix: don't return immediately for has_pending_tls_data unless
the conn is allowed to read
svn:r1270
2004-03-14 17:06:29 +00:00
Roger Dingledine
b1b7096fd5
refactor bandwidth-control token buckets
...
this is a checkpoint commit; there still remain some
bugs, er, somewhere.
svn:r1269
2004-03-14 16:00:52 +00:00
Roger Dingledine
4b81ecf1cd
crash when our logs go bad
...
nick, can you think of a better response here?
svn:r1268
2004-03-14 15:50:00 +00:00
Roger Dingledine
f149237c06
don't close all the fd's when you spawn a thread, only when you fork
...
svn:r1267
2004-03-12 21:52:15 +00:00
Roger Dingledine
a7d269daa6
bugfix: we were caching transient dns failures
...
svn:r1266
2004-03-12 18:45:42 +00:00
Roger Dingledine
2b131c7e9f
more pesky tabs
...
svn:r1265
2004-03-12 13:02:16 +00:00
Roger Dingledine
05e7e7f776
get rid of those pesky tabs
...
svn:r1264
2004-03-12 13:00:34 +00:00
Roger Dingledine
59f7da3a12
inform unapproved servers when we reject their descriptors
...
svn:r1263
2004-03-12 12:43:13 +00:00
Roger Dingledine
e9b38b4e18
more details when a conn is closed before it's done flushing
...
svn:r1262
2004-03-12 08:16:48 +00:00
Roger Dingledine
2bbb44b938
start tracking the 'broken pipe' error
...
svn:r1261
2004-03-11 20:15:53 +00:00
Nick Mathewson
f3a663267f
Make all the other read/writes into recv/sends, except when they shouldn't be.
...
svn:r1260
2004-03-11 06:35:03 +00:00