aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
Commit message (Collapse)AuthorAge
* Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson2009-01-04
| | | | | | | | The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
* Remove some code that is #ifdefed out, and that we no longer seem to use, if ↵Nick Mathewson2008-12-30
| | | | | | we ever did. svn:r17827
* Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson2008-12-22
| | | | svn:r17734
* Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this ↵Nick Mathewson2008-12-18
| | | | | | patch. svn:r17686
* Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson2008-12-18
| | | | | | (The unfixed ones are being downgraded to regular XXXs mainly on the rationale that they don't seem to be exploding Tor, and they were apparently not showstoppers for 0.2.0.x-final.) svn:r17682
* Use ctags and a python script to find identifiers that are never used ↵Nick Mathewson2008-12-17
| | | | | | anywhere, and remove the ones that we really want gone. svn:r17651
* Apparently sparc64 is way more strict about uint16_t access alignment than I ↵Nick Mathewson2008-11-12
| | | | | | had thought: it gave bus errors when messing with var-cell headers. Maybe this patch will fix bug 862. svn:r17262
* Patch from mwenge: update TrackHostExits mapping expiry times when the ↵Nick Mathewson2008-09-29
| | | | | | mappings are used, so that they expire a while after their last use, not a while after their creation. svn:r17004
* read_to_buf should take an int *error_socket and return it.Roger Dingledine2008-09-14
| | | | svn:r16909
* Refactor unit test macros and tor_free_all() logic a bit so as to make it ↵Nick Mathewson2008-09-09
| | | | | | easier to free memory on failing tests, in order to suppress scanner warnings and to make dmalloc() usable with tests. svn:r16816
* handle ipv6 in socks5 requests.Nick Mathewson2008-08-08
| | | | svn:r16476
* When a struct ends with char a[1], the size of all earlier members of the ↵Nick Mathewson2008-07-31
| | | | | | struct is _not_ sizeof(st)-1; compilers add alignment. Problem spotted by rovv. Backport candidate. svn:r16302
* Explain how my emacs setup works in the HACKING file. Someone else may care too.Nick Mathewson2008-06-13
| | | | svn:r15228
* r16171@tombo: nickm | 2008-06-11 13:47:41 -0400Nick Mathewson2008-06-11
| | | | | | | Lower number of syscalls used to write data to ordinary sockets through use of writev. Disabled till I have time to test it. svn:r15133
* cosmetic patch by Bernhard M. Wiedemann, so our comments followRoger Dingledine2008-05-04
| | | | | | | the socks5 protocol better svn:r14552
* forward-port r13799 and the 0.2.0.21-rc changelogRoger Dingledine2008-03-02
| | | | svn:r13808
* r14388@tombo: nickm | 2008-02-21 22:44:28 -0500Nick Mathewson2008-02-22
| | | | | | | More 64-to-32 fixes. svn:r13672
* r14371@tombo: nickm | 2008-02-21 16:13:18 -0500Nick Mathewson2008-02-21
| | | | | | | Fix all -Wshorten-64-to-32 warnings that appear on my macbook. svn:r13662
* r18286@catbus: nickm | 2008-02-20 21:10:33 -0500Nick Mathewson2008-02-21
| | | | | | | Fix a bug that kept buf_find_string_offset from finding a string at the very end of the buffer. Add a unit test for this. Also, do not save a pointer to a chunk that might get reallocated by buf_pullup(). svn:r13635
* r18283@catbus: nickm | 2008-02-20 18:58:31 -0500Nick Mathewson2008-02-20
| | | | | | | Fix assertion when searching for a string in an empty chunk. svn:r13634
* r18279@catbus: nickm | 2008-02-20 18:38:48 -0500Nick Mathewson2008-02-20
| | | | | | | Log message to try to detect error in buffers.c svn:r13633
* r18272@catbus: nickm | 2008-02-20 18:20:33 -0500Nick Mathewson2008-02-20
| | | | | | | add a flag to suppress overwriting the certificates file with new certificates, so we do not overwrite all certs when starting as an authority. svn:r13630
* r18267@catbus: nickm | 2008-02-20 16:57:45 -0500Nick Mathewson2008-02-20
| | | | | | | Suppress signed/unsigned comparison warnings in buffers.c svn:r13624
* r18264@catbus: nickm | 2008-02-20 12:48:21 -0500Nick Mathewson2008-02-20
| | | | | | | fix bufs in buf_pos_t implementation. svn:r13623
* r18255@catbus: nickm | 2008-02-20 11:44:55 -0500Nick Mathewson2008-02-20
| | | | | | | Add asserts and refactor some comparisons in order to fix some veracode-identified issues. Note a bug in buffers.c svn:r13618
* call a "number of characters" a size_t, not an intRoger Dingledine2008-02-19
| | | | svn:r13594
* r14181@tombo: nickm | 2008-02-15 16:48:17 -0500Nick Mathewson2008-02-15
| | | | | | | Fix all but 2 DOCDOC items; defer many XXX020s (particularly those where fixing them would fix no bugs at the risk of introducing some bugs). svn:r13529
* r18051@catbus: nickm | 2008-02-12 15:20:43 -0500Nick Mathewson2008-02-12
| | | | | | | Re-tune mempool parametes based on testing on peacetime: use smaller chuncks, free them a little more aggressively, and try very hard to concentrate allocations on fuller chunks. Also, lots of new documentation. svn:r13484
* r14063@tombo: nickm | 2008-02-08 15:48:32 -0500Nick Mathewson2008-02-08
| | | | | | | Add a bunch more code documentation; change the interface of fetch_var_cell_from_buf() so it takes the current link protocol into account and can't get confused by weird command bytes on v1 connections. svn:r13430
* Update some copyright notices: it is now 2008.Nick Mathewson2008-02-07
| | | | svn:r13412
* r17951@catbus: nickm | 2008-02-06 14:34:13 -0500Nick Mathewson2008-02-06
| | | | | | | Add more documentation; change the behavior of read_to_buf_tls to be more consistent. Note a longstanding problem with current read/write interfaces. svn:r13407
* r17947@catbus: nickm | 2008-02-06 11:57:53 -0500Nick Mathewson2008-02-06
| | | | | | | Fix a bunch of DOCDOC items; document the --quiet flag; refactor a couple of XXXX020 items. svn:r13405
* r17936@catbus: nickm | 2008-02-06 00:31:11 -0500Nick Mathewson2008-02-06
| | | | | | | Fix/downgrade some more XXX020s. svn:r13397
* r15890@tombo: nickm | 2008-01-12 17:19:51 -0500Nick Mathewson2008-01-13
| | | | | | | Add a --disable-buffer-freelists configure argument to build without buffer RAM chunk freelists, so we can benchmark the impact of this. svn:r13121
* r17467@catbus: nickm | 2008-01-05 19:54:20 -0500Nick Mathewson2008-01-06
| | | | | | | fix whitespace svn:r13035
* r15750@tombo: nickm | 2007-12-29 19:12:51 -0500Nick Mathewson2007-12-30
| | | | | | | Make HTTP-processing code in buffers.c faster: do not pull up 50K of text into the first chunk if the headers end earlier than that. svn:r13006
* r17433@catbus: nickm | 2007-12-29 12:35:57 -0500Nick Mathewson2007-12-29
| | | | | | | Incomplete code to avoid doing needless pull-ups on HTTP. Also, use memstr instead of strstr to find the content-length header. svn:r13005
* r15745@tombo: nickm | 2007-12-29 00:15:17 -0500Nick Mathewson2007-12-29
| | | | | | | Try even harder not to allocate chunks bigger than MAX_CHUNK_ALLOC. svn:r13003
* r17426@catbus: nickm | 2007-12-28 21:12:29 -0500Nick Mathewson2007-12-29
| | | | | | | Remove need for buf_pullup in fetch_line_from_buf(). svn:r13002
* r17410@catbus: nickm | 2007-12-27 09:20:27 -0500Nick Mathewson2007-12-27
| | | | | | | Exciting new entries in buf_dump_freelist_sizes() to make sure our freelist sizes are reasonable. svn:r12996
* r17407@catbus: nickm | 2007-12-27 00:18:31 -0500Nick Mathewson2007-12-27
| | | | | | | Fix windows compile error svn:r12995
* r17405@catbus: nickm | 2007-12-26 22:27:37 -0500Nick Mathewson2007-12-27
| | | | | | | And clean up an assertion failure. svn:r12993
* r17403@catbus: nickm | 2007-12-26 22:23:50 -0500Nick Mathewson2007-12-27
| | | | | | | Apparently loops work better when you actually increment/decrement the loop variable. Who knew? svn:r12992
* r15723@tombo: nickm | 2007-12-26 19:25:51 -0500Nick Mathewson2007-12-27
| | | | | | | Actually trim freelists. svn:r12991
* r15721@tombo: nickm | 2007-12-26 17:07:10 -0500Nick Mathewson2007-12-26
| | | | | | | Fix a nasty infinite loop in flush_buf[_tls]. svn:r12990
* r15719@tombo: nickm | 2007-12-26 14:02:12 -0500Nick Mathewson2007-12-26
| | | | | | | More tweaks on 0-byte TLS writes. svn:r12989
* r15717@tombo: nickm | 2007-12-26 13:55:53 -0500Nick Mathewson2007-12-26
| | | | | | | Oops. flush_buf_tls can request more than the requested number of bytes. When that happens, do not let the size_t sz wrap around. svn:r12988
* r15715@tombo: nickm | 2007-12-26 13:09:27 -0500Nick Mathewson2007-12-26
| | | | | | | Peacetime managed to run overnight in paranoia mode. Disabling paranoia, so that buffers.c can be a little speedy again. svn:r12987
* r15710@tombo: nickm | 2007-12-25 19:36:03 -0500Nick Mathewson2007-12-26
| | | | | | | Fix in flush_buf_tls: it is okay to flush an empty buffer, since we may have a partial TLS record pending. svn:r12984
* r15693@tombo: nickm | 2007-12-25 19:11:29 -0500Nick Mathewson2007-12-26
| | | | | | | Here, have some terribly clever new buffer code. It uses a mbuf-like strategy rather than a ring buffer strategy, so it should require far far less extra memory to hold any given amount of data. Also, it avoids access patterns like x=malloc(1024);x=realloc(x,1048576);x=realloc(x,1024);append_to_freelist(x) that might have been contributing to memory fragmentation. I've tested it out a little on peacetime, and it seems to work so far. If you want to benchmark it for speed, make sure to remove the #define PARANOIA; #define NOINLINE macros at the head of the module. svn:r12983