aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* Implement more control spec functionalityNick Mathewson2005-02-25
| | | | | | | | | | | | | | | | | | - Mapaddress - Postdescriptor - GetInfo on descriptors Required changes elsewhere: - Keep the most recent running_routers_t in the routerlist_t. That way we can learn about new routers and remember whether we were last told that they were up or down. Also enables more simplifications. - Keep the signed descriptor inside routerinfo_t. This makes descriptor_entry_t in dirservers.c unneeded. - Rename AddressMap (the verb) to MapAddress. Keep AddressMap as a noun. - Check addresses for plausibility before mapping them. svn:r3696
* Forward-port the trick to bump up ConnLimit as far as it canRoger Dingledine2005-02-22
| | | | | | | | go, but not past MAXCONNECTIONS. Also throw away the FAKE_POLL caveats since 0.1.0 doesn't need it any more. svn:r3657
* Change from inet_ntoa to a threadproof tor_inet_ntoa.Nick Mathewson2005-02-22
| | | | svn:r3656
* Note a non-bug in read_file_to_str as used. If we start to rely on it ↵Nick Mathewson2005-02-22
| | | | | | behaving differently, we need to change how it behaves. [Noticed by Chris Palmer] svn:r3655
* But on windows, localtime and gmtime _are_ threadsafe.Nick Mathewson2005-02-22
| | | | svn:r3654
* Patch to localtime/gmtime handling: use the _r variants where available. ↵Nick Mathewson2005-02-22
| | | | | | Use mutexes to fake _r where necessary. Make mutexes no-ops where no threading is enabled. svn:r3653
* Remove assumptions that maximum path length is anything like 1024. From ↵Nick Mathewson2005-02-22
| | | | | | comments by Chris Palmer svn:r3652
* remove spurious semicolonsNick Mathewson2005-02-22
| | | | svn:r3650
* Snarf some logic from python, adapted to our own needs, to handle ↵Nick Mathewson2005-02-22
| | | | | | gethostbyname_r correctly across platforms. svn:r3649
* Initial IRIX compatibility fixes: check for inttypes.h; check for platform ↵Nick Mathewson2005-02-22
| | | | | | cell_t. svn:r3648
* Fix windows build: do not spuriously include openssl where not needed; ↵Nick Mathewson2005-02-22
| | | | | | handle lack of gethostbyname_r properly. svn:r3644
* bugfix: actually use the argument to strmap_free()Roger Dingledine2005-02-20
| | | | svn:r3640
* avoid case (not yet triggered) where smartlists could grow outRoger Dingledine2005-02-19
| | | | | | | of control svn:r3636
* Tell openssl how to use locks and how to find thread ids -- this may prevent ↵Nick Mathewson2005-02-13
| | | | | | race conditions surrounding the error queue. svn:r3622
* Apply windows patch from Dmitri BelyNick Mathewson2005-02-12
| | | | svn:r3617
* Free tls resources on exit tooNick Mathewson2005-02-11
| | | | svn:r3615
* Handle return value from getaddrinfo properlyNick Mathewson2005-02-03
| | | | svn:r3526
* Use getaddrinfo and gethostbyname_r where available. Note that these are ↵Nick Mathewson2005-02-03
| | | | | | not necessarily threadsafe: this needs more thinking. Perhaps we should back down on this multithreading idea. svn:r3522
* Forward-port SGI Compatibility patches from Jan SchaumannNick Mathewson2005-02-03
| | | | svn:r3517
* point out a potential thread/process leak problem when we're out of memoryRoger Dingledine2005-02-03
| | | | svn:r3512
* Add --with-dmalloc configure optionPeter Palfrader2005-02-03
| | | | svn:r3508
* http://www.erlenstar.demon.co.uk/unix/faq_2.html says weRoger Dingledine2005-02-03
| | | | | | | should call _exit, not exit, from child processes. svn:r3506
* clarify what smartlist_remove promises, since we rely on it.Roger Dingledine2005-01-31
| | | | svn:r3473
* Add rudimentary pthread support that needs more testing.Nick Mathewson2005-01-27
| | | | svn:r3439
* fwd-port win32 isprint fixNick Mathewson2005-01-22
| | | | svn:r3410
* forward-port: fix win32 compileRoger Dingledine2005-01-22
| | | | svn:r3406
* give a header file for ntohsRoger Dingledine2005-01-20
| | | | svn:r3388
* Compilation fixes for win32 version detection.Nick Mathewson2005-01-20
| | | | svn:r3385
* Make zlib detection happy on little-endian platforms; fix unit tests.Nick Mathewson2005-01-20
| | | | svn:r3384
* Detect windows platform correctlyNick Mathewson2005-01-19
| | | | svn:r3377
* Make detect_compression_method work on platforms with more evil chars.Nick Mathewson2005-01-19
| | | | svn:r3376
* Workaround for webservers that lie about Content-Encoding: Tor now tries to ↵Nick Mathewson2005-01-19
| | | | | | autodetect compressed directories and compression itself. (resolves bug 65) svn:r3374
* Make Tor use Niels Provos's libevent instead of it's currentNick Mathewson2005-01-12
| | | | | | | | | | | | poll-but-sometimes-select mess. This will let us use faster async cores (like epoll, kpoll, and /dev/poll), and hopefully work better on Windows too. There are some fairly nasty changes to main.c here; this will almost certainly break something. But hey, that's what alphas are for. svn:r3341
* clean up smartlist_string_isin so callers don't have to manage bufsRoger Dingledine2005-01-12
| | | | | | | themselves svn:r3338
* help avoid overflow from len_in + (len_in/n)*len_insRoger Dingledine2005-01-10
| | | | | | | nick, do you think this does it? if so, we should maybe backport too. svn:r3334
* make the initial temp log only notice-err, not info-errRoger Dingledine2005-01-04
| | | | svn:r3274
* Bugfix: we've been using openssl's BIO_get_mem_data incorrectly.Roger Dingledine2005-01-03
| | | | | | | | We assumed the pem-encoded data written by PEM_write_bio_RSAPrivateKey is nul-terminated, and at least sometimes, it's not. svn:r3263
* More work on task #43: fix race conditions on multithreaded (win32) servers.Nick Mathewson2005-01-03
| | | | svn:r3251
* Possible fix for task #43: when running on a multithreaded environment ↵Nick Mathewson2005-01-03
| | | | | | (currently only windows), threads should not close opposite sides of their socketpairs, and workers should not call connection_free_all(). This may fix win32 servers. svn:r3247
* Resolve task 42: find where 19-char nicknames were getting truncated when ↵Nick Mathewson2005-01-03
| | | | | | read from certs, and fix it. Also audit use of MAX_NICKNAME_LEN; no other badness found, but some docs/code cleaned up a touch. svn:r3244
* fix an assert on startup when the disk is full and you're logging to a fileRoger Dingledine2004-12-22
| | | | svn:r3204
* move network_init from or/main to common/compatRoger Dingledine2004-12-22
| | | | | | | | call network_init in tor-resolve.c too move tor_lookup_hostname from common/util to common/compat svn:r3203
* Fix a bug in last patch; and keep my name out of the assert() call too.Nick Mathewson2004-12-22
| | | | svn:r3200
* Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's name outNick Mathewson2004-12-22
| | | | | | | of the warning messages. svn:r3199
* Make split(..., NULL) split on horizontal space; fix bug with tabs in config ↵Nick Mathewson2004-12-16
| | | | | | file. svn:r3155
* Note that length checking on base64_decode is kinda conservativeNick Mathewson2004-12-13
| | | | svn:r3144
* Belt *or* suspenders will be sufficient when casting things to unsigned char.Nick Mathewson2004-12-08
| | | | svn:r3122
* Solaris CC freaks out if isspace and friends get anything other than an int. ↵Nick Mathewson2004-12-08
| | | | | | 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
* fix commentRoger Dingledine2004-12-07
| | | | svn:r3110
* Fix some memory leaks and unlikely segfaultsNick Mathewson2004-12-07
| | | | svn:r3103