Nick Mathewson
|
87caad5445
Fix an underflow in buffer use conting.
|
20 years ago |
Nick Mathewson
|
b0538591c7
Reset buf->highwater every time buf_shrink is called, not just on suffessful shrink.
|
20 years ago |
Roger Dingledine
|
4c43789435
Some play code to throw away old buffers sometimes rather
|
20 years ago |
Nick Mathewson
|
baa10cbbfa
Instrument buffers.c and rephist.c memory usage
|
20 years ago |
Roger Dingledine
|
5265bbd2b8
first iteration of scrubbing sensitive strings from logs.
|
20 years ago |
Nick Mathewson
|
8b9ae25224
Change some >=s to >s in buf_resize, so that we do not denormalize buffers on resize.
|
20 years ago |
Nick Mathewson
|
14bac4dad4
Elaborate on buf_shrink comment.
|
20 years ago |
Roger Dingledine
|
aa6bcd50ca
comment buf_shrink
|
20 years ago |
Nick Mathewson
|
ad547cbb8c
Correct and simplify buf_shrink logic
|
20 years ago |
Nick Mathewson
|
d6a6c8785b
When removing all bytes from a buffer, reset buf->cur=buf->mem
|
20 years ago |
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.
|
20 years ago |
Nick Mathewson
|
9c683c7613
Make buffer shrinking algorithm a little smarter.
|
20 years ago |
Nick Mathewson
|
fe65e57ca1
Re-do fragmented control message handling to work with new buf_t system.
|
20 years ago |
Nick Mathewson
|
d0a9a8bdd3
Appease VC7. It has a strangely puritanical attitude about what programmers are allowed to do a consenting void*.
|
20 years ago |
Nick Mathewson
|
53607d3bb3
Turn SENTINELS back on; give NOINLINE a name and turn it off.
|
20 years ago |
Roger Dingledine
|
4c4a14e3cb
turn off the mongo debugging stuff, for performance tests
|
20 years ago |
Nick Mathewson
|
52376dc9e8
Rename buf->start to buf->cur; fix bug in read_to_buf; still debug with paranoia.
|
20 years ago |
Nick Mathewson
|
746768df5d
Add even more debugging code; temporarily disable inlines in buffers.c
|
20 years ago |
Roger Dingledine
|
2a7aec0ffd
fix function prototype, fix typo
|
20 years ago |
Nick Mathewson
|
ecc76d8245
Avoid overflow on wrapping a TLS read.
|
20 years ago |
Nick Mathewson
|
9ba2dd7ea1
Clean/renormalize whitespace
|
20 years ago |
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.
|
20 years ago |
Roger Dingledine
|
12ea3a26b2
bugfix: make a debug log stop lying
|
20 years ago |
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.)
|
20 years ago |
Roger Dingledine
|
97637549bb
tie MAX_DIR_SIZE to MAX_BUF_SIZE
|
20 years ago |
Nick Mathewson
|
0e81265359
update copyright notices.
|
20 years ago |
Nick Mathewson
|
97dad670ea
Renormalize whitespace
|
20 years ago |
Nick Mathewson
|
aaf70df3bd
Fix signed/unsigned warning
|
20 years ago |
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."
|
20 years ago |
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.
|
20 years ago |