summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-10-13Merge branch 'nodes'Nick Mathewson
2010-10-13Send END cells on bufferevent tunneled directory connsNick Mathewson
Our old code correctly called bufferevent_flush() on linked connections to make sure that the other side got an EOF event... but it didn't call bufferevent_flush() when the connection wasn't hold_open_until_flushed. Directory connections don't use hold_open_until_flushed, so the linked exit connection never got an EOF, so they never sent a RELAY_END cell to the client, and the client never concluded that data had arrived. The solution is to make the bufferevent_flush() code apply to _all_ closing linked conns whose partner is not already marked for close.
2010-10-13Revert accidentally-committed changes to routerlist.cNick Mathewson
This reverts part of commit a0c1c2ac012fded493c0d8c49fe57e56373b061f.
2010-10-13Use connection_mark_and_flush consistently.Nick Mathewson
2010-10-12Remember to re-install inbuf/outbuf callbacks on ssl buffereventsNick Mathewson
If we don't, we will (among other bad things) never update lastread/lastwritten, and so flood the network with keepalives.
2010-10-12Set OpenSSL 0.9.8l renegotiation flag early enough for buffereventsNick Mathewson
This seems to fix another case of bug2001.
2010-10-12Actually call connection_tls_finish_handshake() with buffereventsNick Mathewson
First start of a fix for bug2001, but my test network still isn't working: the client and the server send each other VERSIONS cells, but never notice that they got them.
2010-10-12Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2010-10-11Fix running unit tests from outside of the build directory (fixes bug #2051)Steven Murdoch
Currently the unit tests test_util_spawn_background_* assume that they are run from the Tor build directory. This is not the case when running make distcheck, so the test will fail. This problem is fixed by autoconf setting BUILDDIR to be the root of the Tor build directory, and this preprocessor variable being used to specify the absolute path to test-child. Also, in test-child, do not print out argv[0] because this will no longer be predictable. Found by Sebastian Hahn.
2010-10-11Add header for tor_tls_log_one_errorNick Mathewson
2010-10-11Log OpenSSL errors coming from bufferevent_opensslNick Mathewson
2010-10-11Fix MIPSpro and time_t signedness detectionSebastian Hahn
3d6e2830876 silenced the autogen.sh warnings as it was supposed to, but introduced two bugs. Fix them.
2010-10-11Fix the new warnings during autogen.shSebastian Hahn
Follow-up fix to 3d6e2830876c for configure.in additions in master that weren't in maint-0.2.2
2010-10-11Merge remote branch 'sjmurdoch/bug1903'Nick Mathewson
2010-10-11Skip running fgets_eagain test until we fix itSteven Murdoch
2010-10-11Make tor_sscanf handle %xNick Mathewson
2010-10-11Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2010-10-11Fix warnings with new versions of autoconfSebastian Hahn
It looks like autoconf 2.68 introduced a bunch of new warnings when it didn't like the syntax you used or forgot to use AC_LANG_(SOURCE|PROGRAM).
2010-10-10Add a unit test for tor_spawn_backgroundSteven Murdoch
- Test sucessfully starting a process - Test failing to find the executable
2010-10-10Update documentation for tor_spawn_backgroundSteven Murdoch
- Include description of stdout_read, stderr_read, and argv
2010-10-10Add a unit test for fgets (currently fails)Steven Murdoch
- For a non-blocking pipe, check that on EAGAIN fgets returns NULL rather than a partial line
2010-10-10Fix issues in nickm's review of log_from_pipe for bug #1903Steven Murdoch
- Replace sscanf with tor_sscanf - Replace use of strstr with equivalent call to strcmpstart
2010-10-10Fix nickm's comments on logging for bug #1903Steven Murdoch
- Use log_warn rather than log_err for bad but survivable events
2010-10-10Note icky constructs mentioned in bug #1903Steven Murdoch
- To be dealt with as part of bug #2029
2010-10-07Fix a crash bug when serving microdescs on a bufferevent.Nick Mathewson
2010-10-07Remove a spurious .z from microdesc fetch URLs so they no logner end with .z.zNick Mathewson
2010-10-07Add some missing documentation for things added in nodes branchNick Mathewson
2010-10-07Actually add test_microdesc.c file.Nick Mathewson
2010-10-07Add more documentation to microdesc.c, plus another assert.Nick Mathewson
2010-10-07Add a more verbose log message to try to catch bug #2022.Nick Mathewson
2010-10-07Unit tests for microdescriptor cacheNick Mathewson
May help with tracking down bug #2022
2010-10-07Fix a compile warning on OSX 10.6Sebastian Hahn
2010-10-05Spotted another missing checkNick Mathewson
2010-10-04Fix a couple more node_t-related nullpointer bugsNick Mathewson
2010-10-04Switch an && to an ||, stop a *NULL.Nick Mathewson
2010-10-04Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2010-10-04Correct a bogus comment.Robert Ransom
Whether or not OpenSSL reference-counts SSL_CTX objects is irrelevant; what matters is that Tor reference-counts its wrapper objects for SSL_CTXs.
2010-10-04Correct a couple of log messages in tortls.cRobert Ransom
2010-10-04Fix several comments in tortls.cRobert Ransom
2010-10-04Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2010-10-04Clarify PublishServerDescriptor even moreNick Mathewson
2010-10-04Merge remote branch 'rransom/manpage-fixes' into maint-0.2.2Nick Mathewson
2010-10-04Merge remote branch 'origin/maint-0.2.2'Nick Mathewson
2010-10-04Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson
2010-10-04Fix issues in nickm's review of format_helper_exit_status for bug #1903Steven Murdoch
- Responsibility of clearing hex_errno is no longer with caller - More conservative bounds checking - Length requirement of hex_errno documented - Output format documented
2010-10-04Update to the October 1 2010 Maxmind GeoLite Country database.Karsten Loesing
2010-10-01More debugging code for node_t branchNick Mathewson
2010-10-01Implement policies for nodes (and for microdescriptors too)Nick Mathewson
2010-10-01Fix a bug in smartlist_choose_node_by_bandwidthNick Mathewson
2010-10-01Implement a few more node-based functionsNick Mathewson
Some of these functions only work for routerinfo-based nodes, and as such are only usable for advisory purposes. Fortunately, our uses of them are compatible with this limitation.