aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
Commit message (Collapse)AuthorAge
* Add a missing cast to silence the compilerSebastian Hahn2011-03-28
|
* Fix some 'impossible' overflow bugs in byte countingNick Mathewson2011-03-25
| | | | | | | | | | The first was genuinely impossible, I think: it could only happen when the amount we read differed from the amount we wanted to read by more than INT_MAX. The second is just very unlikely: it would give incorrect results to the controller if you somehow wrote or read more than 4GB on one edge conn in one second. That one is a bugfix on 0.1.2.8-beta.
* Triage the XXX022 and XXX021 comments remaining in the codeNick Mathewson2011-03-25
| | | | | Remove some, postpone others, leave some alone. Now the only remaining XXX022s are ones that seem important to fix or investigate.
* Merge branch 'bug2756_relay' into maint-0.2.2Nick Mathewson2011-03-15
|\
| * Consider sending stream-level SENDME cells on partial flushes.Nick Mathewson2011-03-14
| | | | | | | | | | | | | | | | | | | | | | | | Right now, we only consider sending stream-level SENDME cells when we have completely flushed a connection_edge's outbuf, or when it sends us a DATA cell. Neither of these is ideal for throughput. This patch changes the behavior so we now call connection_edge_consider_sending_sendme when we flush _some_ data from an edge outbuf. Fix for bug 2756; bugfix on svn r152.
* | Check newconn, not conn, before marking newconn for closeNick Mathewson2011-03-14
|/ | | | This fixes bug 2757. It's a bugfix on 85da676108f0d.
* Add client code to detect attempts to connect to 127.0.0.1 etcNick Mathewson2011-01-25
| | | | | | | | | | | | | | We detect and reject said attempts if there is no chosen exit node or circuit: connecting to a private addr via a randomly chosen exit node will usually fail (if all exits reject private addresses), is always ill-defined (you're not asking for any particular host or service), and usually an error (you've configured all requests to go over Tor when you really wanted to configure all _remote_ requests to go over Tor). This can also help detect forwarding loop requests. Found as part of bug2279.
* Fix double-mark bug when failing to init transparent connectionNick Mathewson2011-01-25
| | | | Fixes part of bug 2279. Bugfix on 0.1.2.1-alpha.
* Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson2011-01-03
|\ | | | | | | | | | | Conflicts: src/common/test.h src/or/test.c
| * Bump copyright statements to 2011Nick Mathewson2011-01-03
| |
* | Change Natd into NATD in our options.Sebastian Hahn2010-11-10
| | | | | | | | | | Breaking this out of the last commit because this might be more controversial.
* | Synx manpage and source wrt option capitalizationSebastian Hahn2010-11-10
| | | | | | | | | | | | We had a spelling discrepancy between the manpage and the source code for some option. Resolve these in favor of the manpage, because it makes more sense (for example, HTTP should be capitalized).
* | Add a generic rate-limited log mechanism, and use it in a few placesNick Mathewson2010-08-18
| | | | | | | | Incidentally fixes bug 1042.
* | Merge commit 'karsten/dirbytes2'Nick Mathewson2010-08-18
|\ \ | | | | | | | | | | | | Conflicts: src/or/rephist.h
| * | Correctly report written bytes on linked connections.Karsten Loesing2010-08-18
| | |
| * | Count bytes we spend on answering directory requests.Karsten Loesing2010-08-18
| | |
* | | Merge commit 'sebastian/bug1831'Nick Mathewson2010-08-15
|\ \ \
| * | | Fix misplaced labelsSebastian Hahn2010-08-16
| |/ /
* / / Refactor exit port statistics code and add unit tests.Karsten Loesing2010-08-11
|/ /
* | Create routerparse.hSebastian Hahn2010-07-27
| |
* | Create rephist.hSebastian Hahn2010-07-27
| |
* | Create relay.hSebastian Hahn2010-07-27
| |
* | Create reasons.hSebastian Hahn2010-07-27
| |
* | Create policies.hSebastian Hahn2010-07-27
| |
* | Create main.hSebastian Hahn2010-07-27
| |
* | Create dns.hSebastian Hahn2010-07-27
| |
* | Create dirserv.hSebastian Hahn2010-07-27
| |
* | Create directory.hSebastian Hahn2010-07-27
| |
* | Create cpuworker.hSebastian Hahn2010-07-27
| |
* | Create control.hSebastian Hahn2010-07-27
| |
* | Create connection_or.hSebastian Hahn2010-07-27
| |
* | Create connection_edge.hSebastian Hahn2010-07-27
| |
* | Create connection.hSebastian Hahn2010-07-27
| |
* | Create config.hSebastian Hahn2010-07-27
| |
* | Create circuituse.hSebastian Hahn2010-07-27
| |
* | Create circuitlist.hSebastian Hahn2010-07-27
| |
* | Create circuitbuild.hSebastian Hahn2010-07-27
| |
* | Create buffers.hSebastian Hahn2010-07-27
| |
* | Create rendclient.hSebastian Hahn2010-07-27
| |
* | Create rendcommon.hSebastian Hahn2010-07-27
| |
* | Create router.hSebastian Hahn2010-07-27
| |
* | Create geoip.hSebastian Hahn2010-07-27
| |
* | Split headers for dnsserv.c functions out of or.hSebastian Hahn2010-07-27
| | | | | | | | | | | | | | The next series of commits begins addressing the issue that we're currently including the complete or.h file in all of our source files. To change that, we're splitting function definitions into new header files (one header file per source file).
* | commit my annotations while i was hunting down the host order bugRoger Dingledine2010-03-05
| |
* | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-02-27
|\| | | | | | | | | | | Conflicts: src/common/test.h src/or/test.c
| * Update Tor Project copyright yearsNick Mathewson2010-02-27
| |
* | Don't spam controllers with TOO_MANY_CONNECTIONS eventsSebastian Hahn2010-02-08
| | | | | | | | | | | | We implemented ratelimiting for warnings going into the logfile, but didn't rate-limit controller events. Now both log warnings and controller events are rate-limited.
* | Don't use OutboundBindAddress to connect to localhostNick Mathewson2010-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OutboundBindAddress option is useful for making sure that all of your outbond connections use a given interface. But when connecting to 127.0.0.1 (or ::1 even) it's important to actually have the connection come _from_ localhost, since lots of programs running on localhost use the source address to authenticate that the connection is really coming from the same host. Our old code always bound to OutboundBindAddress, whether connecting to localhost or not. This would potentially break DNS servers on localhost, and socks proxies on localhost. This patch changes the behavior so that we only look at OutboundBindAddress when connecting to a non-loopback address.
* | Log a notice when we get a new control connectionSebastian Hahn2010-01-18
| |
* | whitespace fixesRoger Dingledine2010-01-15
| |