aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
Commit message (Collapse)AuthorAge
...
* Tests for crypto; more tests for buffersNick Mathewson2003-04-16
| | | | svn:r234
* Introduce a few unit tests (from older code), refactor compression ↵Nick Mathewson2003-04-15
| | | | | | setup/teardown svn:r232
* Add magic to end of C files to make emacs happy; split test invocation into ↵Nick Mathewson2003-04-07
| | | | | | separate file. svn:r224
* get rid of those nasty tabsRoger Dingledine2003-03-24
| | | | svn:r216
* Fix message when decompressingNick Mathewson2003-03-19
| | | | svn:r214
* Be loud when decompressingNick Mathewson2003-03-19
| | | | svn:r213
* Make decompression loud.Nick Mathewson2003-03-19
| | | | svn:r209
* Add code for end-to-end zlib compression. Still needs flow-controlNick Mathewson2003-03-17
| | | | svn:r187
* pack into data cells more intelligentlyRoger Dingledine2003-03-10
| | | | svn:r173
* better comments and a few patchesRoger Dingledine2003-03-04
| | | | svn:r164
* major overhaul: dns slave subsystem, topicsRoger Dingledine2003-01-26
| | | | | | | | | | | | | | | | | | | | | | | | | | on startup, it forks off a master dns handler, which forks off dns slaves (like the apache model). slaves as spawned as load increases, and then reused. excess slaves are not ever killed, currently. implemented topics. each topic has a receive window in each direction at each edge of the circuit, and sends sendme's at the data level, as per before. each circuit also has receive windows in each direction at each hop; an edge sends a circuit-level sendme as soon as enough data cells have arrived (regardless of whether the data cells were flushed to the exit conns). removed the 'connected' cell type, since it's now a topic command within data cells. at the edge of the circuit, there can be multiple connections associated with a single circuit. you find them via the linked list conn->next_topic. currently each new ap connection starts its own circuit, so we ought to see comparable performance to what we had before. but that's only because i haven't written the code to reattach to old circuits. please try to break it as-is, and then i'll make it reuse the same circuit and we'll try to break that. svn:r152
* more robust http(ish) handlingRoger Dingledine2002-09-28
| | | | svn:r123
* cleanup: don't use size_t when you mean intRoger Dingledine2002-08-24
| | | | | | | size_t is what you get back from sizeof(). no more, no less. svn:r80
* linkpadding is now off by default.Roger Dingledine2002-08-23
| | | | svn:r79
* Implemented congestion controlRoger Dingledine2002-07-18
| | | | | | | | | | | | | | | Servers are allowed to send 100 cells initially, and can't send more until they receive a 'sendme' cell from that direction, indicating that they can send 10 more cells. As it currently stands, the exit node quickly runs out of window, and sends bursts of 10 whenever a sendme cell gets to him. This is much much much faster (and more flexible) than the old "give each circuit 1 kB/s and hope nothing overflows" approach. Also divided out the connection_watch_events into stop_reading, start_writing, etc. That way we can control them separately. svn:r54
* new config files, some bugfixesRoger Dingledine2002-07-16
| | | | svn:r51
* Implemented link padding and receiver token bucketsRoger Dingledine2002-07-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each socket reads at most 'bandwidth' bytes per second sustained, but can handle bursts of up to 10*bandwidth bytes. Cells are now sent out at evenly-spaced intervals, with padding sent out otherwise. Set Linkpadding=0 in the rc file to send cells as soon as they're available (and to never send padding cells). Added license/copyrights statements at the top of most files. router->min and router->max have been merged into a single 'bandwidth' value. We should make the routerinfo_t reflect this (want to do that, Mat?) As the bandwidth increases, and we want to stop sleeping more and more frequently to send a single cell, cpu usage goes up. At 128kB/s we're pretty much calling poll with a timeout of 1ms or even 0ms. The current code takes a timeout of 0-9ms and makes it 10ms. prepare_for_poll() handles everything that should have happened in the past, so as long as our buffers don't get too full in that 10ms, we're ok. Speaking of too full, if you run three servers at 100kB/s with -l debug, it spends too much time printing debugging messages to be able to keep up with the cells. The outbuf ultimately fills up and it kills that connection. If you run with -l err, it works fine up through 500kB/s and probably beyond. Down the road we'll want to teach it to recognize when an outbuf is getting full, and back off. svn:r50
* fixed a critical bug in yesterday's changes to buffers.cRoger Dingledine2002-07-02
| | | | | | | (starting to debug my OP integration) svn:r18
* made 'app' connection be 'exit' connectionRoger Dingledine2002-06-30
| | | | | | | general cleanup, particularly in buffers.c svn:r17
* Initial revisionRoger Dingledine2002-06-26
svn:r2