summaryrefslogtreecommitdiff
path: root/src/or/connection.c
AgeCommit message (Collapse)Author
2010-09-30Whitespace fixes on recent merges to master.Nick Mathewson
2010-09-27New function to grab a directory connection fetching a resourceNick Mathewson
We need this to tell if a given consensus flavor is being downloaded or not.
2010-09-27Document and/or fix stuff found by Sebastian in code reviewNick Mathewson
Thanks to Sebastian for his code-review of the bufferevents patch series.x
2010-09-27Some bufferevents related fixes and pointers for nickmSebastian Hahn
2010-09-27Convert bufferevents to use rate-limiting.Nick Mathewson
This requires the latest Git version of Libevent as of 24 March 2010. In the future, we'll just say it requires Libevent 2.0.5-alpha or later. Since Libevent doesn't yet support hierarchical rate limit groups, there isn't yet support for tracking relayed-bytes separately when using the bufferevent system. If a future version does add support for hierarchical buckets, we can add that back in.
2010-09-27Fix a couple of bufferevent incompatibilities that snuck in.Nick Mathewson
2010-09-27Get zlib compression working with bufferevents.Nick Mathewson
2010-09-27Implement SOCKS-client support for buffereventsNick Mathewson
2010-09-27Documentation for a few bufferevent functions.Nick Mathewson
2010-09-27Get SSL connections and linked connections working with bufferevents.Nick Mathewson
Clients are now verified to work and build circuits correctly. There are still a few warnings given here and there that I need to look into.
2010-09-27Make control connections use buffereventsNick Mathewson
2010-09-27Fix crash/warning bug when we get an unexpected close.Nick Mathewson
This was possible if we have already decided to close a bufferevent connection, but the other side decides to close it first.
2010-09-27Add support for linked connections with bufferevent_pair.Nick Mathewson
Also, set directory connections (linked and otherwise) to use bufferevents. Also, stop using outbuf_flushlen anywhere except for OR connections.
2010-09-27Add bufferevent support for outgoing connections; exits are now supported.Nick Mathewson
2010-09-27Fix more remaining users of inbuf/outbuf to handle bufferevents instead.Nick Mathewson
2010-09-27Be a little more abstract about which connection type use buffereventsNick Mathewson
2010-09-27Make a function to mark a connection and set hold_open_until_flushed.Nick Mathewson
2010-09-27Allow hold-open-until-flushed logic to work for bufferevents.Nick Mathewson
2010-09-27Move the "stop writing when the buffer is empty" logic to ↵Nick Mathewson
cnnection_finished_flushing
2010-09-27Basic bufferevent callbacksNick Mathewson
These are based strongly on connection_handle_read and connection_handle_write, but hopefully without so much mixture of IO logic and Tor logic.
2010-09-27Add a new connection_fetch_from_buf_line() that can handle buffereventsNick Mathewson
2010-09-27New bufferevent-related check in assert_connection_ok().Nick Mathewson
{Make sure that if we have a bufferevent on a connection, we do not have the other libevent/buffering-related fields set.}
2010-09-27Add bufferevent versions of connection_write/fetch_to/from_buf.Nick Mathewson
2010-09-27Refactor users of buf_datalen to bufferevent-friendly version.Nick Mathewson
2010-09-27Teach read_event/write_event manipulators about bufferevents.Nick Mathewson
Add an --enable-bufferevents config switch.
2010-08-18Add a generic rate-limited log mechanism, and use it in a few placesNick Mathewson
Incidentally fixes bug 1042.
2010-08-18Merge commit 'karsten/dirbytes2'Nick Mathewson
Conflicts: src/or/rephist.h
2010-08-18Correctly report written bytes on linked connections.Karsten Loesing
2010-08-18Count bytes we spend on answering directory requests.Karsten Loesing
2010-08-15Merge commit 'sebastian/bug1831'Nick Mathewson
2010-08-16Fix misplaced labelsSebastian Hahn
2010-08-11Refactor exit port statistics code and add unit tests.Karsten Loesing
2010-07-27Create routerparse.hSebastian Hahn
2010-07-27Create rephist.hSebastian Hahn
2010-07-27Create relay.hSebastian Hahn
2010-07-27Create reasons.hSebastian Hahn
2010-07-27Create policies.hSebastian Hahn
2010-07-27Create main.hSebastian Hahn
2010-07-27Create dns.hSebastian Hahn
2010-07-27Create dirserv.hSebastian Hahn
2010-07-27Create directory.hSebastian Hahn
2010-07-27Create cpuworker.hSebastian Hahn
2010-07-27Create control.hSebastian Hahn
2010-07-27Create connection_or.hSebastian Hahn
2010-07-27Create connection_edge.hSebastian Hahn
2010-07-27Create connection.hSebastian Hahn
2010-07-27Create config.hSebastian Hahn
2010-07-27Create circuituse.hSebastian Hahn
2010-07-27Create circuitlist.hSebastian Hahn
2010-07-27Create circuitbuild.hSebastian Hahn