summaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2004-12-13note a future thing we should doRoger Dingledine
svn:r3141
2004-12-13clean up logging,Roger Dingledine
make it clearer which warns are bugs, make the control log event match its specification, point out a bug in how we deal with failure when renewing the tls context. svn:r3138
2004-12-13Only launch dns workers when we are actually starting a server.Nick Mathewson
svn:r3137
2004-12-11when hibernating, don't advertise any portsRoger Dingledine
this is important for the dirport, because clients will still ask you for a directory, and they'll be sad when you're down. and do the other ports too, because hey, they're not listening. svn:r3133
2004-12-08make the 64 bit args print correctly on 64 bit archstor-0.0.9rc7Roger Dingledine
svn:r3123
2004-12-08Solaris CC freaks out if isspace and friends get anything other than an int. ↵Nick Mathewson
We learned that, so we casted. But it is also a bad idea to cast a signed char to an int and expect things to work on win32. Now we cast to unsigned char, then to int, then pass to isspace. Ug svn:r3120
2004-12-07Log contents of bw_accounting when we read it; fix memory leak.Nick Mathewson
svn:r3118
2004-12-07resolve tequila's crash bug: you can't free somethingRoger Dingledine
and then keep using it. svn:r3117
2004-12-07rearrange debug logs to make more senseRoger Dingledine
svn:r3116
2004-12-07clean two more minor memory leaksRoger Dingledine
svn:r3115
2004-12-07Only set a cookie when we intend to.Nick Mathewson
svn:r3114
2004-12-07fix a minor leak for people offering hidden servicesRoger Dingledine
svn:r3113
2004-12-07log bytes written with kill -USR1 tooRoger Dingledine
svn:r3112
2004-12-07fix the other half of the pipe raceRoger Dingledine
svn:r3111
2004-12-07avoid a sigpipe from a race: if we get the end right afterRoger Dingledine
the app has hung up on us, we shouldn't hold-open-until-flush. svn:r3109
2004-12-07I'm a bad person.Roger Dingledine
Stop treating the uint16_t's as null-terminated strings, and stop looking at the byte after them to see if it's null, because sometimes you're not allowed to look there. svn:r3108
2004-12-07were we on crack??Roger Dingledine
svn:r3107
2004-12-07salvage another 300 bytes per hupRoger Dingledine
svn:r3106
2004-12-07and bust another memory leakRoger Dingledine
svn:r3105
2004-12-07plug another memory leakRoger Dingledine
svn:r3104
2004-12-07Fix some memory leaks and unlikely segfaultsNick Mathewson
svn:r3103
2004-12-07ORPort must be defined if ORBindAddress is defined.Roger Dingledine
svn:r3100
2004-12-07when recommending new-format log lines, if the upper bound is LOG_ERR,Roger Dingledine
leave it implicit. svn:r3097
2004-12-07Renormalize whitespaceNick Mathewson
svn:r3095
2004-12-07Make unit tests work on win32Nick Mathewson
svn:r3094
2004-12-06More win32 fixes: 1) tolerate extra "readable" events better. 2) when being ↵Nick Mathewson
multithreaded, leave parent fdarray open. svn:r3092
2004-12-06answer resolved ip in network orderRoger Dingledine
svn:r3087
2004-12-06avoid using uninitialized variableRoger Dingledine
svn:r3086
2004-12-06don't use cache for resolving .foo.exit names, but do reply immediatelyRoger Dingledine
if we're asked to resolve an IP.foo.exit. svn:r3085
2004-12-06fix indentingRoger Dingledine
svn:r3084
2004-12-05send an end to the streams we close when we hibernate, ratherRoger Dingledine
than just chopping them off svn:r3083
2004-12-05check if we have a cached resolve for a tor-resolve address *after*Roger Dingledine
we remove the .foo.exit part of the address. svn:r3082
2004-12-05fix a minor leak in my recent commitRoger Dingledine
svn:r3081
2004-12-05talk about quotas rather than bandwidths, in the logsRoger Dingledine
svn:r3080
2004-12-05New circuit building strategy: keep a list of ports that we've used in ↵Roger Dingledine
the past 6 hours, and always try to have 2 circuits open or on the way that will handle each such port. (We can extend this to include addresses if exit policies shift to require that.) Seed us with port 80 so web browsers won't complain that Tor is "slow to start up". This was necessary because our old circuit building strategy just involved counting circuits, and as time went by we would build up a big pile of circuits that had peculiar exit policies (e.g. only exit to 9001-9100) which would take up space in the circuit pile but never get used. Fix router_compare_addr_to_addr_policy: it was not treating a port of * as always matching, so we were picking reject *:* nodes as exit nodes too. If you haven't used a clean circuit in an hour, throw it away, just to be on the safe side. This means after 6 hours a totally unused Tor client will have no circuits open. svn:r3078
2004-12-04plus add a comment re: the previous bugRoger Dingledine
svn:r3076
2004-12-04bugfix: router_exit_policy_rejects_all() was broken, so we wereRoger Dingledine
sometimes picking middleman nodes as our last hop, which wasn't very useful. svn:r3075
2004-12-04Now we allow writing to the buffer even when the stream if marked forRoger Dingledine
close, if we're planning to wait to flush it. This is important because we were sending a socks reject back if we're closing and hadn't already sent one, but it wasn't actually getting written since the conn was already marked-for-close. svn:r3074
2004-12-04React to eof immediately on non-open edge connections.Roger Dingledine
Stop keeping track of num_retries for apconns, since they expire after 60 seconds anyway. When warning about retrying or giving up, print the address, so the user knows which one it's talking about. svn:r3073
2004-12-04bugfix: When we were checking to see if an ap_conn should time outRoger Dingledine
waiting for its connected cell, we were calculating time from when the ap_conn was created. So if it waited say 20 seconds before being attached, then we would immediately decide that the circuit had timed out. Also, make circuit_dump_by_conn() display actual circuit progress, including circuits that haven't been attached to the conn yet but hope to when it finishes connecting. svn:r3072
2004-12-04whoopsRoger Dingledine
just because it says snprintf doesn't mean it's a noop svn:r3071
2004-12-04Add function to check that addr_policy_t is okay; change struct ↵Nick Mathewson
addr_policy_t to addr_policy_t. svn:r3070
2004-12-04make circuit building and router parsing less noisyRoger Dingledine
svn:r3068
2004-12-03while hibernating, hup should not regrow our listeners.Roger Dingledine
svn:r3067
2004-12-02clean up 3 more underflow possibilitiesRoger Dingledine
svn:r3063
2004-12-02fix redundant (and dangerous) NUL terminationRoger Dingledine
svn:r3062
2004-12-01check for duplicate circuit ID _after_ updating circ_id_type.tor-0.0.9rc5Nick Mathewson
svn:r3058
2004-12-01move StatusFetchPeriod to 15 minutes so it's within bounds by defaultRoger Dingledine
svn:r3055
2004-12-01one more typoRoger Dingledine
svn:r3054
2004-12-01Spell-check strings and commentsNick Mathewson
svn:r3052