aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
AgeCommit message (Collapse)Author
2007-11-08 r16570@catbus: nickm | 2007-11-08 11:04:20 -0500Nick Mathewson
Keep track, for each OR connection, of the last time we added a non-padding cell to its outbuf. Use this timestamp, not "lastwritten" to tell if it is time to close a circuitless connection. (We can'tuse lastwritten, since lastwritten is updated when ever the connection flushes anything, and by that point we can no longer tell what is a padding cell and what is not.) svn:r12437
2007-11-07 r16523@catbus: nickm | 2007-11-07 11:35:49 -0500Nick Mathewson
Improve "tls error. breaking" message a little. svn:r12411
2007-11-06 r16464@catbus: nickm | 2007-11-06 14:53:28 -0500Nick Mathewson
Also avoid overflow on or_conn->read_bucket svn:r12401
2007-11-06 r16462@catbus: nickm | 2007-11-06 14:40:58 -0500Nick Mathewson
Fix bug 544: do not allow buckets to overflow. Backportable. svn:r12400
2007-11-05 r16409@catbus: nickm | 2007-11-05 10:38:25 -0500Nick Mathewson
Split handshake state into its own structure. Revise versions and netinfo code to use this structure. svn:r12380
2007-10-11minor cleanupsRoger Dingledine
svn:r11890
2007-10-11 r15689@catbus: nickm | 2007-10-11 16:40:25 -0400Nick Mathewson
Fix bug 451. This was a nasty bug, so let's fix it twice: first, by banning recursive calls to connection_handle_write from connection_flushed_some; and second, by not calling connection_finished_flushing() on a closed connection. Backport candidate. svn:r11882
2007-10-10get rid of the spurious "Freeing linked %s connection" complaints.Roger Dingledine
they happen whenever we fail to establish a connection. svn:r11854
2007-10-10 r15619@catbus: nickm | 2007-10-10 00:23:45 -0400Nick Mathewson
Fix bug 483: downgrade a harmless "Hey your accept() implementation sucks" warning to an info. svn:r11828
2007-10-02 r15512@catbus: nickm | 2007-10-02 16:27:43 -0400Nick Mathewson
Make some functions static; remove some dead code. svn:r11750
2007-08-20 r14722@catbus: nickm | 2007-08-20 10:54:29 -0400Nick Mathewson
Add debugging warning to not abort in the case of bug 483. This is probably not an actual error case, so we should figure out what is really causing it and do something more sensible. svn:r11215
2007-08-17 r14639@catbus: nickm | 2007-08-17 17:45:28 -0400Nick Mathewson
Compile without warnings on MinGW, even with --enable-gcc-warnings enabled. svn:r11157
2007-07-30 r14001@catbus: nickm | 2007-07-29 21:31:53 -0400Nick Mathewson
Try to call time(NULL) a little less. svn:r10980
2007-07-29Be even more aggressive about separating local traffic from relayedRoger Dingledine
traffic when RelayBandwidthRate is set. (Refines proposal 111.) svn:r10974
2007-07-25 r13908@catbus: nickm | 2007-07-25 18:55:47 -0400Nick Mathewson
Patch from Robert Hogan: set conn->dns_server_port correctly so that we can close dns server ports when they change, thus avoiding crashes and dangling references and other sources of unhappiness. svn:r10933
2007-07-16 r13774@catbus: nickm | 2007-07-16 12:23:28 -0400Nick Mathewson
Tweaks on constrained socket buffers patch from coderman: Add a changelog; rename some variables; fix some long lines and whitespace; make ConstrainedSockSize a memunit; pass setsockopt a void. svn:r10843
2007-07-16 r13773@catbus: nickm | 2007-07-16 11:58:25 -0400Nick Mathewson
Initial "constrained socket buffers" patch from coderman. needs tweaking. svn:r10842
2007-07-15fix a memory leak from r10504 (i think)Roger Dingledine
svn:r10829
2007-06-08 r13328@catbus: nickm | 2007-06-08 17:14:55 -0400Nick Mathewson
Arg. Irix apparently #defines sa_family to something. Thus, naming fields or variables "sa_family" will not work. svn:r10541
2007-06-06 r13274@catbus: nickm | 2007-06-05 19:06:30 -0400Nick Mathewson
Remove some deadcode that seems unlikely to return svn:r10509
2007-06-05 r13266@catbus: nickm | 2007-06-05 16:38:08 -0400Nick Mathewson
Patch from peter palfrader: control interface via unix domain socket svn:r10504
2007-06-05Change an assert into a tor_assertPeter Palfrader
svn:r10495
2007-06-04Fix retry_all_listeners() and retry_listeners() description to match code. ↵Peter Palfrader
We are smarter than comparing lengths of want- and have-listeners. svn:r10487
2007-06-04Remove force flag from retry_all_listeners() and retry_listeners(). It ↵Peter Palfrader
always was 0. svn:r10486
2007-06-03 r13174@catbus: nickm | 2007-06-03 17:39:20 -0400Nick Mathewson
Patch from robert hogan: avoid crash when DNS port is set more than once. svn:r10471
2007-05-29 r13053@catbus: nickm | 2007-05-29 13:35:33 -0400Nick Mathewson
Move connection_should_read_from_linked_conn into main.c, which is the only file that uses it. svn:r10394
2007-05-29 r13050@catbus: nickm | 2007-05-29 13:31:11 -0400Nick Mathewson
Resolve all but 3 DOCDOCs. svn:r10393
2007-05-25polish r9933-r9994Roger Dingledine
svn:r10335
2007-05-25remove an obsolete notion that we judge runningness based onRoger Dingledine
whether we have a connection open to the server right now. svn:r10333
2007-05-24 r12942@catbus: nickm | 2007-05-24 16:31:22 -0400Nick Mathewson
Well, that was easier than I thought it would be. Tor is now a DNS proxy as well as a socks proxy. Probably some bugs remain, but since it A) has managed to resolve one address for me successfully, and B) will not affect anybody who leaves DNSPort unset, it feel like a good time to commit. svn:r10317
2007-05-22 r12853@catbus: nickm | 2007-05-22 11:36:54 -0400Nick Mathewson
Make connection_array into a smartlist. svn:r10292
2007-05-16 r12768@catbus: nickm | 2007-05-16 17:25:33 -0400Nick Mathewson
Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198
2007-04-23 r12496@catbus: nickm | 2007-04-22 23:04:05 -0400Nick Mathewson
When logging memory usage, break down memory used in buffers by buffer type. svn:r10004
2007-04-21 r12482@catbus: nickm | 2007-04-21 13:30:24 -0400Nick Mathewson
Rename a couple of confusing fields svn:r9996
2007-04-21 r12763@Kushana: nickm | 2007-04-20 18:42:58 -0400Nick Mathewson
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
2007-04-21 r12759@Kushana: nickm | 2007-04-20 08:47:20 -0400Nick Mathewson
Track the number of connection_t separately from the number of open sockets. It is already possible to have connections that do not count: resolving conns, for one. Once we move from socketpairs to linked conns, and once we do dns proxying, there will be lots of such connections. svn:r9994
2007-03-26 r12652@Kushana: nickm | 2007-03-25 15:01:48 -0400Nick Mathewson
A surprisingly simple patch to stop reading on edge connections when their circuits get too full, and start again when they empty out. This lets us remove the logic to block begin_dir conns when the corresponding or conns get full: it was already broken by cell queues anyway. svn:r9905
2007-03-24 r12643@0-41-wifi: nickm | 2007-03-23 14:56:35 -0400Nick Mathewson
Refactor a bunch of functions that take edge_connection_t not to also take a crypt_path_t; the cpath is implicit. svn:r9899
2007-03-21Don't save non-general-purpose router descriptors to the disk cache,Roger Dingledine
because we have no way of remembering what their purpose was when we restart. svn:r9894
2007-03-20a stopgap measure while we wait for proposal 111: apply theRoger Dingledine
stricter rate limiting to all OR conns except those that have been touched by local circuits. svn:r9882
2007-03-20Add a separate set of token buckets for relayed traffic. RightRoger Dingledine
now that's just defined as answers to directory requests. svn:r9881
2007-03-05 r12080@catbus: nickm | 2007-03-04 21:40:55 -0500Nick Mathewson
Remove dnsworkers and related code. there goes another 550 lines of code. svn:r9736
2007-03-04 r12077@catbus: nickm | 2007-03-04 16:08:23 -0500Nick Mathewson
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
2007-03-04 r12074@catbus: nickm | 2007-03-04 15:11:43 -0500Nick Mathewson
Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.) svn:r9733
2007-02-25 r11942@catbus: nickm | 2007-02-25 11:22:12 -0500Nick Mathewson
Fix connection_get_by_type_state_rendquery(): This has been bogus for most of 0.1.2.x. Thanks to Karsten Loesing for finding the bug; fixes bug 399. svn:r9651
2007-02-14 r11813@catbus: nickm | 2007-02-14 11:42:58 -0500Nick Mathewson
Tweak stream_bw patch: Remove a couple of redundant checks, save 8 bytes per edge connection, fix spelling in the changelog; expand spec. svn:r9586
2007-02-14 r11812@catbus: nickm | 2007-02-14 11:22:08 -0500Nick Mathewson
Apply stream_bw patch from Robert Hogan. svn:r9585
2007-02-12 r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson
Update copyright dates. svn:r9570
2007-02-11more useful log messages when we give up on a streamRoger Dingledine
svn:r9552
2007-02-08 r11726@catbus: nickm | 2007-02-08 16:04:53 -0500Nick Mathewson
Resolve some XXXX012 items: - Remove PathlenCoinWeight: if we want it again, we can add it back in. - Ditto with RelayBandwidth*. - Decide to leave in the "hey, you didn't set end_reason!" BUG log message, but stop telling people to bug me personally. - Postpone strengthening assert_connection_ok(): it's important, but it's also a good way to introduce weird bugs. - Move some expensive consistency checking from dns_free_all() into assert_cache_ok(). svn:r9533