aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
Commit message (Collapse)AuthorAge
* clients exit immediately on interrupt; they don't waitRoger Dingledine2004-07-21
| | | | svn:r2076
* Misc small code cleanups; remove exit_server_mode(); change tor_tls_verify ↵Nick Mathewson2004-07-21
| | | | | | behavior svn:r2073
* add a new advertised_server_mode() to distinguish ORs thatRoger Dingledine2004-07-21
| | | | | | | are willing to become servers from ones that really are servers. svn:r2071
* when we get a sigint, don't accept new connections/circuits,Roger Dingledine2004-07-20
| | | | | | | | but delay 30 seconds until exiting. if we get a second sigint, exit immediately. svn:r2070
* also don't hang up on him if we're an OR and he's an authdirserverRoger Dingledine2004-07-20
| | | | | | | otherwise we keep getting taken out of the running-routers list svn:r2063
* if you're an OR and he's an OR and he's running 0.0.7,Roger Dingledine2004-07-20
| | | | | | | don't expire your connections to him. svn:r2062
* a whole swath of fixesRoger Dingledine2004-07-20
| | | | | | | | | | | | | | | | | | | introduce an authdir_mode() macro to match the others. don't initialize uptime to the number of seconds since 1970. non-authoritative dirservers don't cache their directory on disk. make only authdirservers use clique_mode. only read approved-routers file if you're an authdirserver. even authdirservers fetch a new directory in do_hup. retry_all_connections() is now called retry_all_listeners(). router_parse_list_from_string() correctly reports the router number it's working on. only call dirserv_add_own_fingerprint() and dirserv_add_descriptor() on startup if we're an authdirserver. if AuthDir and !ORPort then fail. if AuthDir and ClientOnly then fail. svn:r2061
* abstract ORPort/SocksPort checks into server_mode(), proxy_mode(), ↵Nick Mathewson2004-07-18
| | | | | | clique_mode(), etc. Dont change underlying comments. svn:r2054
* Bugfix: some things (like ctrl-z) can make a second take more than one secondNick Mathewson2004-07-13
| | | | svn:r2042
* only count bytes transmitted to/from non-local IPsRoger Dingledine2004-07-13
| | | | svn:r2041
* checkpoint: start working on bandwidth tracking andRoger Dingledine2004-07-13
| | | | | | | letting clients evaluate whether they're suitable servers svn:r2037
* when you expire a wedged dir conn, conn_close_if_marked will takeRoger Dingledine2004-07-13
| | | | | | | care of trying to flush before it closes svn:r2035
* touchups all overRoger Dingledine2004-07-04
| | | | | | | put uptime in descriptor svn:r2011
* cleanups on 008pre1 itemsRoger Dingledine2004-06-30
| | | | svn:r1993
* Always use get_data_directory() instead of options.DataDirectory; fix a ↵Nick Mathewson2004-06-30
| | | | | | memory leak in router.c svn:r1991
* Remaining 008pre1 items done; deferred where more design is needed.Nick Mathewson2004-06-25
| | | | | | | | | | | | | More docs and (way more!) testing needed. Done: - Authdirservers down directories from others. - Generate and use running-routers lists - Cache directories; store across reboots. - Refactor directory parsing a bit; note potential trouble spots. svn:r1985
* Implement several 008pre1 items: needs more testingNick Mathewson2004-06-21
| | | | svn:r1981
* Implement code to run tor as an NT service. More testing is needed, as is ↵Nick Mathewson2004-06-12
| | | | | | code to install the service. svn:r1966
* Break tor_main into startup/loop/shutdown portions, to make NT service ↵Nick Mathewson2004-06-12
| | | | | | refactoring possible. svn:r1965
* Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config settings tooNick Mathewson2004-06-06
| | | | svn:r1950
* Stop multiplying logs on sighup.Nick Mathewson2004-06-02
| | | | svn:r1936
* Add more asserts to dns-pending connections; fix a couple seeming bugs.Nick Mathewson2004-06-01
| | | | svn:r1931
* declare the epipe bug a non-bug.Roger Dingledine2004-06-01
| | | | | | | | now we catch and ignore epipe signals, and when write returns epipe, we simply return -1 and close the socket/connection. svn:r1928
* bugfix: if the wedged dir conn has no bytes to flush, then we neverRoger Dingledine2004-05-28
| | | | | | | close it. svn:r1924
* dirservers try to reconnect periodically too, in case connections have failedRoger Dingledine2004-05-28
| | | | svn:r1922
* Keep temporary log in place while configuring logsNick Mathewson2004-05-24
| | | | svn:r1919
* Tinker with log behavior: never send error messages about logs into the ↵Nick Mathewson2004-05-20
| | | | | | bitbucket svn:r1912
* some more patchingRoger Dingledine2004-05-20
| | | | svn:r1910
* non-dirservers expire routerinfo's that are more than a day oldRoger Dingledine2004-05-20
| | | | svn:r1907
* Allow multiple logfiles at different severity rangesNick Mathewson2004-05-19
| | | | svn:r1899
* fix a seg fault, add another XXX for nick ;)Roger Dingledine2004-05-18
| | | | svn:r1892
* Resolve some XXXsNick Mathewson2004-05-18
| | | | svn:r1889
* Make directory functions update routerlist, not replace it. Add notion of ↵Nick Mathewson2004-05-17
| | | | | | OR-is-trusted-to-be-a-dirserver. Arma, please review: does this handle being a dirserver right? svn:r1880
* clean up directory.c APIRoger Dingledine2004-05-12
| | | | svn:r1860
* break connection_edge_end out of connection_mark_for_closeRoger Dingledine2004-05-12
| | | | svn:r1858
* break rend_client_desc_fetched out of connection_mark_for_closeRoger Dingledine2004-05-12
| | | | svn:r1856
* calling flush_buf and not checking for return value is badRoger Dingledine2004-05-12
| | | | svn:r1851
* Add an extra flush attempt when closing wedged dir conns, in an attempt to ↵Nick Mathewson2004-05-11
| | | | | | isolate the EPIPE bug svn:r1848
* it's amazing what a bit of punctuation can do for appearancesRoger Dingledine2004-05-10
| | | | svn:r1843
* More doxygenation.Nick Mathewson2004-05-10
| | | | svn:r1832
* more doxygen markupRoger Dingledine2004-05-09
| | | | | | | plenty more remains svn:r1824
* bugfix: do directory_send_command only after we've established a socketRoger Dingledine2004-05-09
| | | | | | | also many comments, cleaning, etc svn:r1823
* bugfix: add a circ->resolving_streams field, and make dns resolving ↵Roger Dingledine2004-05-06
| | | | | | | | | | | | streams not actually in the connection_array until they're done resolving. bugfix: actually complain if we duplicate mark-for-close a circuit add more logging for relay ends that claim dns resolve failed, so we can find out why they're not being retried. svn:r1798
* Document the rest of main.cNick Mathewson2004-05-05
| | | | svn:r1797
* Comments for nearly all non-tricky filesNick Mathewson2004-05-05
| | | | svn:r1796
* Only connection_add connections once they have conn->s sett; refactor code ↵Nick Mathewson2004-05-05
| | | | | | around this. Should make stuff more bulletproof. svn:r1788
* must close marked connections at the end of run_scheduled_events.Roger Dingledine2004-05-05
| | | | | | | | | | | otherwise they might have a socket -1, and if we leave them around they'll muck up poll/select. i think this was the cause of our win32 and os x fakepoll crashes, and probably would cause other errors down the road. svn:r1786
* Working strerror for windows socket errors, plus some snide comments.Nick Mathewson2004-05-02
| | | | svn:r1775
* Handle windows socket errors correctly; comment most of common.Nick Mathewson2004-05-01
| | | | svn:r1756
* tell us when we're rotating thingsRoger Dingledine2004-04-26
| | | | svn:r1712