Commit Graph

1224 Commits

Author SHA1 Message Date
Nick Mathewson 0be65d93bd Make non-fake tor_poll robust against -1 fds
svn:r1787
2004-05-05 01:01:34 +00:00
Roger Dingledine dc04504676 must close marked connections at the end of run_scheduled_events.
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
2004-05-05 00:59:42 +00:00
Nick Mathewson 5cb63867ac More documentation
svn:r1785
2004-05-05 00:30:43 +00:00
Roger Dingledine c2bbd86b9d accept port 81 by default also, since people have been asking for it
svn:r1784
2004-05-04 22:46:19 +00:00
Nick Mathewson 6f518c6d75 Comment router*.c
svn:r1783
2004-05-04 18:17:45 +00:00
Nick Mathewson 83cc54ee7d Fix mac compile
svn:r1782
2004-05-04 18:17:28 +00:00
Nick Mathewson dc0da59e21 tor_assert(), not assert()
svn:r1777
2004-05-02 20:27:48 +00:00
Nick Mathewson 5f0d50f802 Fix windows compile.
svn:r1776
2004-05-02 20:23:35 +00:00
Nick Mathewson 0360acc799 Working strerror for windows socket errors, plus some snide comments.
svn:r1775
2004-05-02 20:18:21 +00:00
Nick Mathewson f241664499 Assert that we never try to fakepoll on sock -1.
svn:r1774
2004-05-02 20:17:43 +00:00
Nick Mathewson 3cae4a2ece Windows version is 0.0.6 too
svn:r1771
2004-05-02 19:29:59 +00:00
Nick Mathewson 582ab843b8 Bump windows version to 0.0.6rc4
svn:r1767
2004-05-02 03:38:31 +00:00
Roger Dingledine c862d043e4 stop the circuit_receive_relay_cell warning
mark the circ for close if circuit_extend fails because the next
hop is not up yet; don't just return -1


svn:r1765
2004-05-02 03:32:00 +00:00
Roger Dingledine 29f4aff550 patches on patches
svn:r1763
2004-05-02 03:15:55 +00:00
Roger Dingledine 424d1d0f0c some patches on the patches
svn:r1761
2004-05-01 23:29:20 +00:00
Nick Mathewson 3d68366369 Documenmt buffers.c; remove function that nobody ever calls.
svn:r1760
2004-05-01 22:08:43 +00:00
Nick Mathewson 41dfd5c77e Remove bogus */ so util.c compiles
svn:r1759
2004-05-01 21:50:53 +00:00
Nick Mathewson e796693da7 Finish documenting the functions in common
svn:r1758
2004-05-01 21:41:23 +00:00
Nick Mathewson 48fff46d26 Fix windows compile
svn:r1757
2004-05-01 20:55:31 +00:00
Nick Mathewson 6ddafdc332 Handle windows socket errors correctly; comment most of common.
svn:r1756
2004-05-01 20:46:28 +00:00
Roger Dingledine 5c1f89ff5b fix a seg fault (whoops)
svn:r1755
2004-04-30 16:35:48 +00:00
Roger Dingledine 13f943434f note another bug to be fixed sometime
svn:r1754
2004-04-30 05:42:52 +00:00
Roger Dingledine 65d8a4f7af update the built-in dirservers default
svn:r1750
2004-04-29 08:10:13 +00:00
Roger Dingledine f251c1ffcc some cosmetic fixes
svn:r1747
2004-04-29 02:52:49 +00:00
Nick Mathewson 079b967ee1 Oops -- the Windows function is closesocket, not socketclose
svn:r1746
2004-04-28 21:17:42 +00:00
Nick Mathewson b7fa6385a4 Use socketclose on windows as appropriate; end pid files with newline
svn:r1745
2004-04-28 21:14:56 +00:00
Roger Dingledine 4049ee558d use tor_lookup_hostname for binding local addresses too
svn:r1744
2004-04-28 20:57:03 +00:00
Nick Mathewson d52c8188d8 Regenerate windows orconfig.h to match current autoheader generated orconfig.h
svn:r1743
2004-04-28 20:43:30 +00:00
Nick Mathewson 675cc3149c Remove IVs from cipher code, since AES-ctr has none.
svn:r1742
2004-04-28 20:31:32 +00:00
Roger Dingledine 7a68467b1d use nick's _ARRAYSIZE abstraction
svn:r1741
2004-04-28 20:22:37 +00:00
Roger Dingledine 8416dc33ce nick, is this what you meant?
svn:r1740
2004-04-28 20:18:22 +00:00
Nick Mathewson b36cb2fd9d Make Tor build on win32 with VC6 without warnings.
svn:r1739
2004-04-28 20:13:21 +00:00
Roger Dingledine 80250bbb67 bug resolved (hopefully), so remove comment
svn:r1738
2004-04-28 20:12:44 +00:00
Roger Dingledine 798a9f5c79 clean dns.c better
svn:r1737
2004-04-28 20:11:37 +00:00
Roger Dingledine f57bc863a0 fix a bug in dns.c, note but don't fix another one
svn:r1735
2004-04-28 19:55:20 +00:00
Nick Mathewson ac32568e30 Workarounds for a couple of pieces of windows strangeness.
svn:r1734
2004-04-28 19:35:12 +00:00
Roger Dingledine 926f5e4541 clean some dead code (right?)
svn:r1733
2004-04-28 00:05:56 +00:00
Roger Dingledine cb5f039526 some compilers don't like an array of length zero
nick: should we remove support for IVs for now, since we don't
use them and don't plan to use them?


svn:r1732
2004-04-27 23:50:35 +00:00
Roger Dingledine 8d8e010939 set Content-Type on the directory and hidserv descriptor
svn:r1731
2004-04-27 21:48:37 +00:00
Roger Dingledine 7457e93222 make my assumption explicit
svn:r1730
2004-04-27 11:28:45 +00:00
Roger Dingledine b2b18b3cfe it was the second bug that was nailing us.
periodically we expire some circuits if we already have
enough, and we were counting rend circs in that number.

(the first one wasn't a bug after all)


svn:r1729
2004-04-27 11:23:56 +00:00
Roger Dingledine 97209da869 don't expire joined-rend circs that have an exit connection attached
and don't expire non-general excess circuits


svn:r1728
2004-04-27 10:16:31 +00:00
Nick Mathewson f924f040a8 Some versions of openssl have an SSL_pending function that erroneously
returns bytes when there is a non-application record pending.

I have no idea when/why this would even happen, but let's catch it and
make sure tor_tls_get_pending_bytes stays correct.


svn:r1727
2004-04-26 23:19:21 +00:00
Nick Mathewson 1c5215847e Log number of bytes pending after read.
svn:r1726
2004-04-26 23:05:58 +00:00
Roger Dingledine 1e3feabc6a rendmid says it drops but actually sends nack
fix log messages


svn:r1725
2004-04-26 23:02:20 +00:00
Nick Mathewson a27c5738e4 Remove spurious semi
svn:r1724
2004-04-26 23:01:15 +00:00
Nick Mathewson d5601cd792 Add a macro to catch unhandled openssl errors.
svn:r1723
2004-04-26 23:00:07 +00:00
Roger Dingledine ed4c5dcc38 and other debugs
svn:r1722
2004-04-26 22:22:18 +00:00
Roger Dingledine 08c890e360 log debug so nick can see it too
svn:r1721
2004-04-26 22:22:11 +00:00
Peter Palfrader c8f8d2b892 The dots are there so you see test doing something. Therefore we should flush them after printing
svn:r1720
2004-04-26 22:12:13 +00:00