aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
Commit message (Collapse)AuthorAge
* Say "using socksX _to_ port y" instead of "socksX _on_ port y". it confuses ↵Peter Palfrader2007-10-10
| | | | | | weasel less svn:r11834
* r14830@catbus: nickm | 2007-08-29 13:50:10 -0400Nick Mathewson2007-08-29
| | | | | | | Make controllers accept LF as well as CRLF. Update spec to reflect this. Remove now-dead code. Make controller warning about v0 protocol more accurate. svn:r11299
* r14034@catbus: nickm | 2007-07-31 05:22:56 -0400Nick Mathewson2007-07-31
| | | | | | | possible fix for bug 473: always set buf->cur on buf_remove_from_front. svn:r11004
* Disable SENTINELS in buffers: it may be responsible for making platform ↵Nick Mathewson2007-07-30
| | | | | | mallocs() be inefficient, and we havent needed it in a long long time. svn:r10994
* Yet another buffer RAM patch: tNever ever ever keep a buffer memory chunk ↵Nick Mathewson2007-07-30
| | | | | | around for an empty buffer that could go on the freelist. This wants profiling to make sure that performance doesnt suffer. svn:r10993
* r13952@catbus: nickm | 2007-07-27 19:18:46 -0400Nick Mathewson2007-07-27
| | | | | | | Weasel noticed that many buffers spend their time with empty 4k, 8k, and 16k memory chunks. Thus, be more aggressive about putting empty chunks on the freelist, regardless of their high water marks. (Also, run buffer_shrink_freelist on the 8k-chunk freelist.) svn:r10953
* r13944@catbus: nickm | 2007-07-27 15:52:35 -0400Nick Mathewson2007-07-27
| | | | | | | | | Fix warnings on platforms where rlim values can be signed. Add an 8k buffer freelist. svn:r10948
* r13939@catbus: nickm | 2007-07-27 14:33:22 -0400Nick Mathewson2007-07-27
| | | | | | | When dumping memory usage, list bytes used in buffer memory free-lists. svn:r10947
* free bridge list on exit; try harder to free buffer freelists on exit.Roger Dingledine2007-07-17
| | | | svn:r10854
* free another string, and the buffer freelists, on exit.Roger Dingledine2007-07-17
| | | | svn:r10851
* r13477@catbus: nickm | 2007-06-17 14:22:03 -0400Nick Mathewson2007-06-17
| | | | | | | Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere. svn:r10645
* r13274@catbus: nickm | 2007-06-05 19:06:30 -0400Nick Mathewson2007-06-06
| | | | | | | Remove some deadcode that seems unlikely to return svn:r10509
* r12934@catbus: nickm | 2007-05-24 14:11:18 -0400Nick Mathewson2007-05-24
| | | | | | | When freeing slack buffers, free the buffers at the end of the freelist first. svn:r10313
* r12764@catbus: nickm | 2007-05-15 17:17:39 -0400Nick Mathewson2007-05-15
| | | | | | | Enable (and cope with) more GCC 4.2 warnings. svn:r10196
* r12935@Kushana: nickm | 2007-05-10 11:25:09 -0400Nick Mathewson2007-05-10
| | | | | | | Make buffer unit tests pass again svn:r10158
* fix a printf size_t/int mismatch from r10150Roger Dingledine2007-05-10
| | | | svn:r10152
* r12706@catbus: nickm | 2007-05-09 18:39:46 -0400Nick Mathewson2007-05-09
| | | | | | | Keep two freelists for buffer ram chunks: one of 4k chunks, and one of 16k chunks. Also, document the whole business. svn:r10150
* r12704@catbus: nickm | 2007-05-09 17:43:34 -0400Nick Mathewson2007-05-09
| | | | | | | Periodically clean the freelist of buffer memory chunks. svn:r10149
* simplify connection_watch_events()Roger Dingledine2007-04-25
| | | | | | | hope this doesn't break it svn:r10025
* r12784@Kushana: nickm | 2007-04-23 19:24:09 -0400Nick Mathewson2007-04-23
| | | | | | | Avoid another assert failure in the new buffer memory code. (This time, it hit when freeing a 4k buffer with some data on it.) svn:r10011
* r12782@Kushana: nickm | 2007-04-23 18:20:19 -0400Nick Mathewson2007-04-23
| | | | | | | Avoid a segfault when freeing a buffer with size 0. svn:r10010
* r12499@catbus: nickm | 2007-04-23 10:42:23 -0400Nick Mathewson2007-04-23
| | | | | | | Keep a freelist of unused 4k buffer chunks, rather than wasting 8k for every inactive connection_t. svn:r10006
* r12496@catbus: nickm | 2007-04-22 23:04:05 -0400Nick Mathewson2007-04-23
| | | | | | | When logging memory usage, break down memory used in buffers by buffer type. svn:r10004
* r12763@Kushana: nickm | 2007-04-20 18:42:58 -0400Nick Mathewson2007-04-21
| | | | | | | Initial version of code to stop using socket pairs for linked connections. Superficially, it seems to work, but it probably needs a lot more testing and attention. svn:r9995
* r12077@catbus: nickm | 2007-03-04 16:08:23 -0500Nick Mathewson2007-03-04
| | | | | | | Remove support for v0 control protocol from 0.2.0.x trunk; send back error when we receive a v0 control message. (Leave "if(v1){...}"blocks indented for now so this patch is easier to read.) ((Finally, the linecount goes _down_ a little.)) svn:r9735
* doc pedantRoger Dingledine2007-02-24
| | | | svn:r9634
* r11826@catbus: nickm | 2007-02-16 14:58:38 -0500Nick Mathewson2007-02-16
| | | | | | | Resolve 56 DOCDOC comments. svn:r9594
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson2007-02-02
| | | | | | | Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch! svn:r9477
* r11957@Kushana: nickm | 2007-01-15 15:25:57 -0500Nick Mathewson2007-01-15
| | | | | | | Patch from Mike Perry: Track reasons for OR connection failure; display them in control events. Needs review and revision. svn:r9354
* r11824@Kushana: nickm | 2007-01-03 17:15:28 -0500Nick Mathewson2007-01-06
| | | | | | | | | | | | | | | | | | | control-spec: upcase arguments in status events; note unimplemented events individually r11825@Kushana: nickm | 2007-01-03 17:41:43 -0500 Implement EXTERNAL IP server status event. r11826@Kushana: nickm | 2007-01-03 17:47:10 -0500 Implement BAD_SERVER_DESCRIPTOR server status event. r11827@Kushana: nickm | 2007-01-03 18:01:56 -0500 Implement SOCKS_UNKNOWN_PROTOCOL and DANGEROUS_SOCKS client events. r11828@Kushana: nickm | 2007-01-03 18:23:22 -0500 Implement BUG controller events. Also, flush ERR-level status events just like ERR-level log messages. r11829@Kushana: nickm | 2007-01-03 23:37:27 -0500 Yet more status events: CLOCK_SKEW, GOOD/ACCEPTED_SERVER_DESCRIPTOR, {CHECKING_}REACHABILITY_{SUCCEEDED|FAILED} r11833@Kushana: nickm | 2007-01-05 16:56:37 -0500 Note some unimplementedness in control-spec.txt svn:r9279
* when we're doing a write split over the end of a circularRoger Dingledine2006-12-14
| | | | | | | | | | | buffer, make sure our tls_get_forced_write_size doesn't make it write whatever's after the buffer. this hasn't triggered yet, but it would be rare, so let's leave it in. svn:r9107
* r11569@Kushana: nickm | 2006-12-13 17:59:58 -0500Nick Mathewson2006-12-13
| | | | | | | fix last fix svn:r9106
* r11566@Kushana: nickm | 2006-12-13 17:46:24 -0500Nick Mathewson2006-12-13
| | | | | | | Try to fix an assert failure in new write limiting code: make buffers.c aware of previous "forced" write sizes from tortls. svn:r9105
* Infrastructure to test BEGIN_DIR cells.Roger Dingledine2006-12-13
| | | | | | | | | | New socks command CONNECT_DIR. New config option TunnelDirConns that builds a circ ending at the directory server and delivers a BEGIN_DIR cell if it's running 0.1.2.2-alpha or later. We still need to make one-hop circs when appropriate, while making other conns avoid them. svn:r9098
* r9317@totoro: nickm | 2006-11-13 22:45:33 -0500Nick Mathewson2006-11-14
| | | | | | | Fix some more mipspro warnings. Nothing should remain excecpt "conversion from pointer to same-sized integral type." svn:r8950
* r9308@totoro: nickm | 2006-11-13 18:41:23 -0500Nick Mathewson2006-11-14
| | | | | | | | | | Add support for (Free?)BSD's natd, which was an old way to let you have your firewall automatically redirect traffic. (Original patch from Zajcev Evgeny, updated for 0.1.2.x by tup.) svn:r8946
* Avoid an infinite loop on evil controlport input. Fixes bug 350,Roger Dingledine2006-10-28
| | | | | | | | | unless it doesn't. (Nick, please confirm.) Backport candidate. svn:r8844
* clean up and downgrade some log messagesRoger Dingledine2006-10-15
| | | | svn:r8727
* r8894@Kushana: nickm | 2006-09-21 18:30:42 -0400Nick Mathewson2006-09-22
| | | | | | | Specify and implement SOCKS5 interface for reverse hostname lookup. svn:r8451
* Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)Nick Mathewson2006-09-19
| | | | svn:r8427
* r8609@Kushana: nickm | 2006-08-27 17:24:27 -0400Nick Mathewson2006-08-28
| | | | | | | Add some doxygen, concentrated in dns.c svn:r8256
* r8576@Kushana: nickm | 2006-08-25 17:16:01 -0400Nick Mathewson2006-08-25
| | | | | | | Fix bug 314: Instead of checking address_in_virtualrange, check addressmap_have_mapping(). This should be more accurate. [Rename to addressmap_have_mapping() from addressmap_already_mapped().] svn:r8226
* make our socks5 handling more robust to broken socks clients:Roger Dingledine2006-08-24
| | | | | | | | | throw out everything waiting on the buffer in between socks handshake phases, since they can't possibly (so the theory goes) have predicted what we plan to respond to them. svn:r8223
* stick to nick's nul/null conventionRoger Dingledine2006-07-15
| | | | svn:r6763
* Turn a while into a do/while; save a redundant testNick Mathewson2006-06-24
| | | | svn:r6683
* Resolve control flow warning.Nick Mathewson2006-06-18
| | | | svn:r6658
* Ah. That seems to work.Nick Mathewson2006-06-18
| | | | svn:r6657
* another write_to_buf_zlib fix.Nick Mathewson2006-06-18
| | | | svn:r6656
* Re-enable buffer RAM guard values.Nick Mathewson2006-06-18
| | | | svn:r6653