summaryrefslogtreecommitdiff
path: root/src/or/connection.c
AgeCommit message (Collapse)Author
2008-12-26Add more missing documentation, and correct an error in container.c ↵Nick Mathewson
documentation: Don't introduce two parameters called n when you're calling an algorithm O(n). svn:r17783
2008-12-22Add DOCDOC entries for undocumented static and global variables.Nick Mathewson
svn:r17739
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-22Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson
comments so that they will get recognized as doxygen. svn:r17729
2008-12-18Replace calls to time(NULL) that occur on the order of once per read, one ↵Nick Mathewson
per write, or once per cell with calls to a function that looks at a cached value of time. This is tricksy to benchmark, since it will only help on systems where time() is a syscall and syscalls are relatively slow. svn:r17690
2008-12-18Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this ↵Nick Mathewson
patch. svn:r17686
2008-12-18Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson
(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
2008-12-17Move edge-only flags from connection_t to edge_connection_t.Nick Mathewson
svn:r17643
2008-12-11Now that tor_assert is no longer using a broken force-to-boolean ↵Nick Mathewson
formulation, we can tor_assert a bitfield without a gcc compile error. svn:r17598
2008-09-26Apply rovv's fix for bug 824.Nick Mathewson
svn:r16975
2008-09-24Add patch 4 from Karsten for proposal 121, slightly modified. Karsten ↵Nick Mathewson
should definitely re-review the bits I changed. svn:r16955
2008-09-16give rend_client_desc_here a slightly more accurate nameRoger Dingledine
svn:r16916
2008-09-16patch from karsten for bug 814. whew.Roger Dingledine
svn:r16915
2008-09-14read_to_buf should take an int *error_socket and return it.Roger Dingledine
svn:r16909
2008-09-09Correct indentation.Karsten Loesing
svn:r16819
2008-09-09Catch and report a few more bootstrapping failure cases when TorRoger Dingledine
fails to establish a TCP connection. Cleanup on 0.2.1.x. svn:r16803
2008-09-05Refactor use of connection_new so that we get more verifiable typesafety.Nick Mathewson
svn:r16785
2008-09-04Use warn_too_many_conns() when accept() fails with a resource limit.Nick Mathewson
svn:r16751
2008-08-29Oops. Make warn_too_many_conns() actually work. Nick Mathewson
svn:r16686
2008-08-15Switch global_identifier on connections to a 64-bit field and move it to ↵Nick Mathewson
connection_t. When procession onionskins, look up the connection by this field rather than by addr:port. This will keep us from dropping onionskins. How many dropped circuits are dropped because of this bug? svn:r16558
2008-08-09Rate-limit "too-many-sockets" messages; they can get needlessly verbose.Nick Mathewson
svn:r16480
2008-08-09Patch cleanups from karstenNick Mathewson
svn:r16479
2008-08-07 r17666@tombo: nickm | 2008-08-07 15:12:30 -0400Nick Mathewson
Make tor_addr_from_sockaddr also give away the port in a useful format svn:r16458
2008-08-05 r17645@31-33-44: nickm | 2008-08-05 16:28:01 -0400Nick Mathewson
Make unspecified addresses also cause connection_is_rate_limited to say 0. svn:r16437
2008-08-05 r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson
Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types. Most of the Tor wire formats using these new types are in, but the code to generate and use it is not. This is a big patch. Let me know what it breaks for you. svn:r16435
2008-07-24 r17346@aud-055: nickm | 2008-07-24 15:37:19 +0200Nick Mathewson
Make generic address manipulation functions work better. Switch address policy code to use tor_addr_t, so it can handle IPv6. That is a good place to start. svn:r16178
2008-06-20If we close our OR connection because there's been a circuitRoger Dingledine
pending on it for too long, we were telling our bootstrap status events "REASON=NONE". Now tell them "REASON=TIMEOUT". svn:r15369
2008-06-20If you're using bridges, generate "bootstrap problem" warningsRoger Dingledine
as soon as you run out of working bridges, rather than waiting for ten failures -- which will never happen if you have less than ten bridges. svn:r15368
2008-06-18Directory authorities shouldn't complain about bootstrappingRoger Dingledine
problems just because they do a lot of reachability testing and some of the connection attempts fail. svn:r15348
2008-06-11start sending "bootstrap problem" status events when we're having troublesRoger Dingledine
reaching relays. svn:r15116
2008-06-11consolidate all our edge/circ/orconn reason-to-foo-or-back functionsRoger Dingledine
svn:r15115
2008-06-09Start noticing and reporting bootstrapping failures too. It looks likeRoger Dingledine
we never bothered learning why OR conns fail, so next step is to add some infrastructure for that. svn:r15091
2008-04-23what, we went from v4 to v6?Roger Dingledine
svn:r14428
2008-04-16minor fixes that have been accumulatingRoger Dingledine
svn:r14378
2008-04-15forward-port r14373Roger Dingledine
svn:r14374
2008-03-17 r18872@catbus: nickm | 2008-03-16 23:56:48 -0400Nick Mathewson
Only dump all guard node status to the log when the guard node status actually changes. Downgrade the 4 most common remaining INFO log messages to DEBUG. svn:r14069
2008-03-11 r18753@catbus: nickm | 2008-03-11 14:56:39 -0400Nick Mathewson
Make some assert()s into tor_assert()s. Make some tor_assert()s called from logging into assert()s, and document why. svn:r13977
2008-02-27 r18462@catbus: nickm | 2008-02-27 14:15:57 -0500Nick Mathewson
Add better warnings for the error that produced bug 614, and downgrade from a tor_assert() to a tor_fragile_assert(). svn:r13752
2008-02-24 r14422@tombo: nickm | 2008-02-24 17:09:56 -0500Nick Mathewson
Whitespace fixes svn:r13700
2008-02-24 r14419@tombo: nickm | 2008-02-24 16:55:11 -0500Nick Mathewson
Patch from tup: use sizeof sockaddr_un as the size of a unix sockaddr. Fixes unix controlsocket binding on openbsd. svn:r13697
2008-02-24 r14410@tombo: nickm | 2008-02-23 16:51:46 -0500Nick Mathewson
Fix the last of the -Wshorten-64-to-32 warnings. svn:r13696
2008-02-22 r14399@tombo: nickm | 2008-02-22 14:09:38 -0500Nick Mathewson
More 64-to-32 fixes. Partial backport candidate. still not done. svn:r13680
2008-02-22 r14388@tombo: nickm | 2008-02-21 22:44:28 -0500Nick Mathewson
More 64-to-32 fixes. svn:r13672
2008-02-21 r14363@31-33-219: nickm | 2008-02-21 11:11:33 -0500Nick Mathewson
Answer the next-to-last XXX020rc item. svn:r13658
2008-02-21 r14362@31-33-219: nickm | 2008-02-21 11:01:10 -0500Nick Mathewson
Change some of our log messages related to closed TLS connections in order to better reflect reality. svn:r13657
2008-02-21start allowing clients to give up on trackhostexits targets ifRoger Dingledine
five circuit attempts fail for a given stream. part of the fix for bug 437. still an XXX020rc remaining. svn:r13648
2008-02-21resolve one more, and leave two for nick.Roger Dingledine
svn:r13644
2008-02-21 r18296@catbus: nickm | 2008-02-20 23:30:11 -0500Nick Mathewson
Answer one xxx020 item; move 7 other ones to a new "XXX020rc" category: they should get fixed before we cut a release candidate. arma: please review these to see whether you have fixes/answers for any. Please check out the other 14 XXX020s to see if any look critical for the release candidate. svn:r13640
2008-02-20pass bucket sizes num_read and num_written around as size_tsRoger Dingledine
rather than ints svn:r13610
2008-02-20notice an integer overflow if we ever get source files with moreRoger Dingledine
than 65k lines in them. also pointed out by veracode. svn:r13606