aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
Commit message (Collapse)AuthorAge
* 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
* Another _zlib fix.Nick Mathewson2006-06-18
| | | | svn:r6652
* Temporarily disable sentinels on buffersNick Mathewson2006-06-18
| | | | svn:r6649
* make zlib buffer function set buf_highwater properlyNick Mathewson2006-06-18
| | | | svn:r6648
* Part of incremental encryption logic for buffers: there is a subtle yucky ↵Nick Mathewson2006-06-18
| | | | | | point documented in a comment. svn:r6637
* complain when we hit wsaenobufs on recv or write too.Roger Dingledine2006-04-08
| | | | | | | perhaps this will help us hunt the bug. svn:r6321
* Implement Jason Holt's SafeSocks config option.Roger Dingledine2006-03-19
| | | | | | | | Also put a URL in the warning message for unsafe socks4 use -- previously we'd only had the URL for unsafe socks5 use. Oops. svn:r6190
* resume being printist: if the hostname contains non-printableRoger Dingledine2006-03-15
| | | | | | | | | | | | characters, then fail. this time don't even bother telling the server operator about these cases, because what's he going to do? if it turns out that some significant population somewhere in the world uses non-printable hostnames and wants to use tor, then i hereby assume that they will contact us. svn:r6171
* Stop being printist: just because our local platform doesn'tRoger Dingledine2006-03-15
| | | | | | | | consider an alleged destination to be printable doesn't mean nobody in the world will want to use it. svn:r6167
* More cleanups noticed by weasel; also, remove macros that nobody uses.Nick Mathewson2006-03-12
| | | | svn:r6143
* Add some functions to escape values from the network before sending them to ↵Nick Mathewson2006-03-05
| | | | | | the log. Use them everywhere except for routerinfo->plaftorm, routerinfo->contact_info, and rend*.c. (need sleep now) svn:r6087
* convert some more source files to the new log conventionRoger Dingledine2006-02-13
| | | | svn:r6002
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine2005-12-10
| | | | | | | | | | | | we screwed up the formatting in wild and unpredictable ways. fix it before it becomes convention to format logs in wild and unpredictable ways. still need to do src/common/ someday. svn:r5551
* In my private little universe, terminals are still 80 columns. Impose a ↵Nick Mathewson2005-12-09
| | | | | | 160-character-per-line limit; this will creep down. svn:r5548
* assert_buf_ok was showing up in the profile; remove it from critical-path ↵Nick Mathewson2005-11-30
| | | | | | functions, since it hasnt triggered for ages. svn:r5479
* Add a new config option TestSocks so people can see if theirRoger Dingledine2005-11-16
| | | | | | | | | applications are using socks4, socks4a, socks5-with-ip, or socks5-with-hostname. This way they don't have to keep mucking with tcpdump and wondering if something got cached somewhere. svn:r5399
* Do round-robin writes of at most 16 kB per write. This mightRoger Dingledine2005-10-29
| | | | | | | | be more fair on loaded Tor servers, and it might resolve our Windows crash bug. It might also slow things down. svn:r5332