Roger Dingledine
|
d922fa7b10
|
fix another underflow in keeping stats
these size_ts are subtle buggers
svn:r4364
|
2005-06-09 03:57:54 +00:00 |
|
Nick Mathewson
|
87caad5445
|
Fix an underflow in buffer use conting.
svn:r4360
|
2005-06-08 21:55:02 +00:00 |
|
Nick Mathewson
|
b0538591c7
|
Reset buf->highwater every time buf_shrink is called, not just on suffessful shrink.
svn:r4353
|
2005-06-08 20:17:32 +00:00 |
|
Roger Dingledine
|
4c43789435
|
Some play code to throw away old buffers sometimes rather
than constantly reallocing them; just in case this is our memory
problem. It looks for now like it isn't, so disabled.
svn:r4349
|
2005-06-08 17:27:11 +00:00 |
|
Nick Mathewson
|
baa10cbbfa
|
Instrument buffers.c and rephist.c memory usage
svn:r4317
|
2005-06-06 17:03:21 +00:00 |
|
Roger Dingledine
|
5265bbd2b8
|
first iteration of scrubbing sensitive strings from logs.
also generally clean up log messages.
svn:r4174
|
2005-05-03 10:04:08 +00:00 |
|
Nick Mathewson
|
8b9ae25224
|
Change some >=s to >s in buf_resize, so that we do not denormalize buffers on resize.
svn:r4172
|
2005-05-03 03:25:04 +00:00 |
|
Nick Mathewson
|
14bac4dad4
|
Elaborate on buf_shrink comment.
svn:r4169
|
2005-05-02 23:41:39 +00:00 |
|
Roger Dingledine
|
aa6bcd50ca
|
comment buf_shrink
svn:r4168
|
2005-05-02 23:39:09 +00:00 |
|
Nick Mathewson
|
ad547cbb8c
|
Correct and simplify buf_shrink logic
svn:r4167
|
2005-05-02 23:36:13 +00:00 |
|
Nick Mathewson
|
d6a6c8785b
|
When removing all bytes from a buffer, reset buf->cur=buf->mem
svn:r4166
|
2005-05-02 23:32:23 +00:00 |
|
Nick Mathewson
|
a312ce1d3b
|
Change buffer shrinking strategy: only try to shrink once every 3 minutes. Do not try to read over buffer size unless buffer is nearly empty.
svn:r4165
|
2005-05-02 23:17:08 +00:00 |
|
Nick Mathewson
|
9c683c7613
|
Make buffer shrinking algorithm a little smarter.
svn:r4164
|
2005-05-02 22:49:24 +00:00 |
|
Nick Mathewson
|
fe65e57ca1
|
Re-do fragmented control message handling to work with new buf_t system.
svn:r4144
|
2005-04-27 22:01:34 +00:00 |
|
Nick Mathewson
|
d0a9a8bdd3
|
Appease VC7. It has a strangely puritanical attitude about what programmers are allowed to do a consenting void*.
svn:r4140
|
2005-04-27 20:02:52 +00:00 |
|
Nick Mathewson
|
53607d3bb3
|
Turn SENTINELS back on; give NOINLINE a name and turn it off.
svn:r4139
|
2005-04-27 19:40:31 +00:00 |
|
Roger Dingledine
|
4c4a14e3cb
|
turn off the mongo debugging stuff, for performance tests
svn:r4137
|
2005-04-27 17:21:42 +00:00 |
|
Nick Mathewson
|
52376dc9e8
|
Rename buf->start to buf->cur; fix bug in read_to_buf; still debug with paranoia.
svn:r4130
|
2005-04-27 02:55:21 +00:00 |
|
Nick Mathewson
|
746768df5d
|
Add even more debugging code; temporarily disable inlines in buffers.c
svn:r4129
|
2005-04-27 00:53:44 +00:00 |
|
Roger Dingledine
|
2a7aec0ffd
|
fix function prototype, fix typo
svn:r4126
|
2005-04-26 21:29:20 +00:00 |
|
Nick Mathewson
|
ecc76d8245
|
Avoid overflow on wrapping a TLS read.
svn:r4125
|
2005-04-26 21:20:22 +00:00 |
|
Nick Mathewson
|
9ba2dd7ea1
|
Clean/renormalize whitespace
svn:r4122
|
2005-04-26 20:55:32 +00:00 |
|
Nick Mathewson
|
ef2409e4ed
|
Change the implementation of buf_t a lot: make it a ring buffer to minimize memmove on flush. This may break the universe, but it is probably Necessary For Perfomance.
svn:r4121
|
2005-04-26 20:53:22 +00:00 |
|
Roger Dingledine
|
12ea3a26b2
|
bugfix: make a debug log stop lying
svn:r4110
|
2005-04-25 15:43:05 +00:00 |
|
Nick Mathewson
|
5827e2e216
|
Fix "JAP-client" hideous ASN1 bug, twice. (Fix1: check more thoroughly for TLS errors when handling certs. Fix2: stop assert(0)ing on uncaught TLS errors.)
svn:r4085
|
2005-04-23 14:26:02 +00:00 |
|
Roger Dingledine
|
97637549bb
|
tie MAX_DIR_SIZE to MAX_BUF_SIZE
resolve bug 80
svn:r4052
|
2005-04-07 22:13:17 +00:00 |
|
Nick Mathewson
|
0e81265359
|
update copyright notices.
svn:r3982
|
2005-04-01 20:15:56 +00:00 |
|
Nick Mathewson
|
97dad670ea
|
Renormalize whitespace
svn:r3757
|
2005-03-14 03:18:35 +00:00 |
|
Nick Mathewson
|
aaf70df3bd
|
Fix signed/unsigned warning
svn:r3736
|
2005-03-10 18:45:42 +00:00 |
|
Nick Mathewson
|
b494c2223d
|
Specify and implement fragmented control messages to allow for (among other things) long GETINFO replies. Otherwise we could hit the 64K barrier on questions like "please dump your client-side DNS cache."
svn:r3726
|
2005-03-02 20:22:10 +00:00 |
|
Nick Mathewson
|
4ddf768a4f
|
Forward-port new reasons; clean up code more; add code to convert new reasons to SOCKS5 reply codes; add code to convert errnos to reasons. New code still needs to get invoked.
svn:r3719
|
2005-03-01 22:16:15 +00:00 |
|
Nick Mathewson
|
6e6d95b3db
|
Change from inet_ntoa to a threadproof tor_inet_ntoa.
svn:r3656
|
2005-02-22 08:18:36 +00:00 |
|
Roger Dingledine
|
a005509c9d
|
update url for when users try to use socksport as an http proxy
svn:r3265
|
2005-01-03 23:19:15 +00:00 |
|
Roger Dingledine
|
f50b785c3b
|
and forward port the cleanup
svn:r3211
|
2004-12-22 10:04:50 +00:00 |
|
Roger Dingledine
|
18320557a1
|
fix a crash: if you do socks4 with an IP of 0.0.0.x then we get tricked
into thinking you're doing socks4a, and we look for the next byte.
thanks to aphex for finding this.
svn:r3207
|
2004-12-22 09:52:29 +00:00 |
|
Roger Dingledine
|
ad4f440e10
|
rearrange debug logs to make more sense
svn:r3116
|
2004-12-07 21:57:10 +00:00 |
|
Nick Mathewson
|
b457cfb5eb
|
Spell-check strings and comments
svn:r3052
|
2004-12-01 03:48:14 +00:00 |
|
Nick Mathewson
|
7fbd297532
|
Suggestion from weasel: Make tor --version --version dump the cvs Id of every file.
svn:r3019
|
2004-11-29 22:25:31 +00:00 |
|
Roger Dingledine
|
22727b4edc
|
wrong is ok, and right is fine, but in between is apparently
totally unacceptable to me.
svn:r3005
|
2004-11-28 11:39:53 +00:00 |
|
Nick Mathewson
|
6f5dbefa7e
|
Normalize space: add one between every control keyword and control clause.
svn:r3003
|
2004-11-28 09:05:49 +00:00 |
|
Nick Mathewson
|
f77ff938b7
|
remember; tor_socket_errno has side effects!
svn:r2997
|
2004-11-28 05:48:02 +00:00 |
|
Roger Dingledine
|
7c9a707900
|
remove emacs droppings, since nick says he doesn't need them anymore
svn:r2989
|
2004-11-26 04:00:55 +00:00 |
|
Roger Dingledine
|
27b8797245
|
clean up some more.
i think i'm getting closer.
svn:r2931
|
2004-11-21 11:20:28 +00:00 |
|
Nick Mathewson
|
aa1c0c4d67
|
Resolve FIXME items: fix assert failure on malformed socks4a qreuests. (bug reported by Anna Shubina wrt old Netscapes)
svn:r2790
|
2004-11-10 14:26:34 +00:00 |
|
Nick Mathewson
|
66779137bf
|
Add missing dereference; stop throwing zeroes around.
svn:r2702
|
2004-11-07 22:18:00 +00:00 |
|
Roger Dingledine
|
394554cfbf
|
Clean up copyrights.
Break connection_consider_empty_buckets() out of
connection_read_bucket_decrement().
svn:r2698
|
2004-11-07 01:33:06 +00:00 |
|
Nick Mathewson
|
d9e0f3f9bc
|
Make sure control command bodies are always followed by a NUL
svn:r2678
|
2004-11-04 22:30:49 +00:00 |
|
Nick Mathewson
|
347d3f9d62
|
Start implementing control interface.
svn:r2652
|
2004-11-03 01:32:26 +00:00 |
|
Nick Mathewson
|
6980929e64
|
Use strlcpy, not strcpy.
svn:r2610
|
2004-10-27 06:48:16 +00:00 |
|
Roger Dingledine
|
de65052312
|
don't assert multiple things in the same tor_assert()
svn:r2544
|
2004-10-16 22:14:52 +00:00 |
|