aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
Commit message (Collapse)AuthorAge
* Avoid running DNS self-tests if we're operating as a bridgewarms0x2011-10-07
|
* Merge branch 'maint-0.2.1' into maint-0.2.2Roger Dingledine2011-09-13
|\ | | | | | | | | | | Conflicts: src/or/main.c src/or/router.c
| * Generate our ssl session certs with a plausible lifetimeRoger Dingledine2011-09-13
| | | | | | | | | | Nobody but Tor uses certs on the wire with 2 hour lifetimes, and it makes us stand out. Resolves ticket 4014.
* | Refactor HS client state-clearing code into a separate functionRobert Ransom2011-06-02
| |
* | Clear last_hid_serv_requests on SIGNAL NEWNYMRobert Ransom2011-06-02
| | | | | | | | Fixes bug #3309.
* | Merge remote-tracking branch 'public/bug3270' into maint-0.2.2Nick Mathewson2011-05-30
|\ \
| * | Use a 64-bit type to hold sockets on win64.Nick Mathewson2011-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On win64, sockets are of type UINT_PTR; on win32 they're u_int; elsewhere they're int. The correct windows way to check a socket for being set is to compare it with INVALID_SOCKET; elsewhere you see if it is negative. On Libevent 2, all callbacks take sockets as evutil_socket_t; we've been passing them int. This patch should fix compilation and correctness when built for 64-bit windows. Fixes bug 3270.
* | | answer an XXX nickm asked in aa950e6c4Roger Dingledine2011-05-29
|/ /
* | log the reason for publishing a new relay descriptorRoger Dingledine2011-05-19
| | | | | | | | now we have a better chance of hunting down the root cause of bug 1810.
* | refetch bridge descriptors in a timely fashionRoger Dingledine2011-05-17
| | | | | | | | | | | | | | When we configure a new bridge via the controller, don't wait up to ten seconds before trying to fetch its descriptor. This wasn't so bad when you listed your bridges in torrc, but it's dreadful if you configure your bridges via vidalia.
* | Don't clear out transient addressmap entries on HUPNick Mathewson2011-05-13
| | | | | | | | | | | | | | | | | | | | | | | | | | If you really want to purge the client DNS cache, the TrackHostExits mappings, and the virtual address mappings, you should be using NEWNYM instead. Fixes bug 1345; bugfix on Tor 0.1.0.1-rc. Note that this needs more work: now that we aren't nuking the transient addressmap entries on HUP, we need to make sure that configuration changes to VirtualAddressMap and TrackHostExits actually have a reasonable effect.
* | Write automatically-chosen control ports to a file.Nick Mathewson2011-05-13
| |
* | Fix compile warning on windowsSebastian Hahn2011-05-05
| |
* | Change who calls microdesc_cache_rebuild().Nick Mathewson2011-05-03
| | | | | | | | | | | | | | | | Previously we ensured that it would get called periodically by doing it from inside the code that added microdescriptors. That won't work though: it would interfere with our code that tried to read microdescs from disk initially. Instead, we should consider rebuilding the cache periodically, and on startup.
* | Ignore SIGNAL NEWNYM on relay-only Tor instancesRobert Ransom2011-04-28
| |
* | Merge branch 'bug3k_021' into bug3k_022Sebastian Hahn2011-04-28
|\| | | | | | | | | | | Conflicts: src/or/or.h src/or/rendclient.c
| * Forget all rendezvous client state on SIGNAL NEWNYMRobert Ransom2011-04-28
| |
* | Expose a new process_signal(uintptr_t), not signal_callback()Nick Mathewson2011-04-26
| | | | | | | | | | | | This is a tweak to the bug2917 fix. Basically, if we want to simulate a signal arriving in the controller, we shouldn't have to pretend that we're Libevent, or depend on how Tor sets up its Libevent callbacks.
* | Make SIGNAL DUMP work on FreeBSDSebastian Hahn2011-04-15
| | | | | | | | | | | | | | | | | | While doing so, get rid of the now unnecessary function control_signal_act(). Fixes bug 2917, reported by Robert Ransom. Bugfix on commit 9b4aa8d2abbce71398e58188209a1b1d04885b96. This patch is loosely based on a patch by Robert (Changelog entry).
* | Use timevals, not time_t, when expiring circuits.Nick Mathewson2011-03-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We've got millisecond timers now, we might as well use them. This change won't actually make circuits get expiered with microsecond precision, since we only call the expiry functions once per second. Still, it should avoid the situation where we have a circuit get expired too early because of rounding. A couple of the expiry functions now call tor_gettimeofday: this should be cheap since we're only doing it once per second. If it gets to be called more often, though, we should onsider having the current time be an argument again.
* | Tweak bug2716 patch a littleNick Mathewson2011-03-12
| | | | | | | | | | | | | | | | | | Name the magic value "10" rather than re-deriving it. Comment more. Use the pattern that works for periodic timers, not the pattern that doesn't work. ;)
* | improve accuracy for when a relay went unreachableRoger Dingledine2011-03-11
| |
* | Enable ASLR and permanent DEP for Windows executablesJohn Brooks2011-02-03
| | | | | | | | Fix for #2358
* | 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
| |
* | Better fix for 2190: defer libevent->controller messages instead of droppingNick Mathewson2010-11-19
| |
* | Rename get_client_identity_key to get_tlsclient_identity_keyNick Mathewson2010-10-21
| |
* | Maintain separate server and client identity keys when appropriate.Robert Ransom2010-10-04
| | | | | | | | Fixes a bug described in ticket #988.
* | Maintain separate server and client TLS contexts.Robert Ransom2010-10-04
| | | | | | | | Fixes bug #988.
* | Refactor tor_tls_context_new:Robert Ransom2010-10-04
| | | | | | | | | | | | | | * Make tor_tls_context_new internal to tortls.c, and return the new tor_tls_context_t from it. * Add a public tor_tls_context_init wrapper function to replace it.
* | handle ugly edge case in retrying entrynodesRoger Dingledine2010-09-28
| | | | | | | | | | | | | | | | Specifically, a circ attempt that we'd launched while the network was down could timeout after we've marked our entrynodes up, marking them back down again. The fix is to annotate as bad the OR conns that were around before we did the retry, so if a circuit that's attached to them times out we don't do anything about it.
* | refactor; no actual changesRoger Dingledine2010-09-28
| |
* | Rename has_completed_circuit to can_complete_circuitNick Mathewson2010-09-22
| | | | | | | | Also redocument it. Related to #1362.
* | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-09-08
|\|
| * Remove a needless keep_open_until_flushedNick Mathewson2010-09-08
| |
| * Close a non-open OR connection *only* after KeepalivePeriod.Nick Mathewson2010-09-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we introduced the code to close non-open OR connections after KeepalivePeriod had passed, we replaced some code that said if (!connection_is_open(conn)) { /* let it keep handshaking forever */ } else if (do other tests here) { ... with new code that said if (!connection_is_open(conn) && past_keepalive) { /* let it keep handshaking forever */ } else if (do other tests here) { ... This was a mistake, since it made all the other tests start applying to non-open connections, thus causing bug 1840, where non-open connections get closed way early. Fixes bug 1840. Bugfix on 0.2.1.26 (commit 67b38d50).
* | Allow enabling or disabling *Statistics while Tor is running.Karsten Loesing2010-08-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With this patch we stop scheduling when we should write statistics using a single timestamp in run_scheduled_events(). Instead, we remember when a statistics interval starts separately for each statistic type in geoip.c and rephist.c. Every time run_scheduled_events() tries to write stats to disk, it learns when it should schedule the next such attempt. This patch also enables all statistics to be stopped and restarted at a later time. This patch comes with a few refactorings, some of which were not easily doable without the patch.
* | Create routerparse.hSebastian Hahn2010-07-27
| |
* | Create rephist.hSebastian Hahn2010-07-27
| |
* | Create relay.hSebastian Hahn2010-07-27
| |
* | Create policies.hSebastian Hahn2010-07-27
| |
* | Create onion.hSebastian Hahn2010-07-27
| |
* | Create ntmain.hSebastian Hahn2010-07-27
| |
* | Create networkstatus.hSebastian Hahn2010-07-27
| |
* | Create microdesc.hSebastian Hahn2010-07-27
| |
* | Create main.hSebastian Hahn2010-07-27
| |
* | Create hibernate.hSebastian Hahn2010-07-27
| |
* | Create dns.hSebastian Hahn2010-07-27
| |
* | Create dirvote.hSebastian Hahn2010-07-27
| |
* | Create dirserv.hSebastian Hahn2010-07-27
| |