Steven Murdoch
5bf9890b3b
Test case for reading the partial output of a background process
2011-07-25 04:08:08 +01:00
Steven Murdoch
99baa7e45c
Fix compilation on non-Windows platforms
2011-07-23 23:49:30 +01:00
Steven Murdoch
c5796a8fb2
If hProcess is NULL, read_all_handle returns if it would block
2011-07-23 21:35:50 +01:00
Steven Murdoch
2d5059e08e
Use PeekNamedPipe to avoid blocking ReadFile when there is nothing to read
2011-07-22 21:12:00 +01:00
Steven Murdoch
55a1cb53d6
Add code to read all from a handle, but this block forever
...
See http://stackoverflow.com/questions/3722409/windows-child-process-with-redirected-input-and-output
for a potential solution
2011-07-22 15:57:56 +01:00
Steven Murdoch
fec902dd60
Add Windows version of tor_spawn_background and ancillary functions
2011-07-21 19:26:19 +01:00
Steven Murdoch
35c89be02b
Generalize process spawning so its test compiles (but fails) in Windows
...
- pid, stdout/stderr_pipe now encapsulated in process_handle
- read_all replaced by tor_read_all_from_process_stdin/stderr
- waitpid replaced by tor_get_exit_code
Untested on *nix
2011-07-21 16:34:48 +01:00
Steven Murdoch
2002d4acdf
Under Windows, call WSAStartup before using the network
2011-07-21 14:14:57 +01:00
Steven Murdoch
8db98c13b5
XXX Link in libiphlpapi (should be disabled on non Win32 platforms)
2011-07-21 13:47:58 +01:00
Steven Murdoch
0ea28ccea0
XXX Use static linking on Windows because miniupnpc doesn't work as DLL
2011-07-21 13:47:16 +01:00
Steven Murdoch
2eca016594
XXX Hack to allow tor-fw-helper to be built on Windows
...
For some reason, --with-libminiupnpc-dir doesn't work on Windows, so this
hardcodes /local/lib as the path in which libminiupnpc.a can be found.
Also, libminiupnpc needs libws2_32 and libiphlpapi under Windows, so this
hardcodes these libraries when building the ./configure test program.
These changes almost certainly break *nix, so should be fixed before merge.
2011-07-21 13:09:50 +01:00
Nick Mathewson
c2d3da6303
Merge remote-tracking branch 'origin/maint-0.2.2'
2011-07-19 12:59:10 -04:00
Nick Mathewson
3e3aac5fd5
Untangle first sentence of changes/bug3607
2011-07-19 11:14:01 -04:00
Robert Ransom
f021df5824
Specify text or binary mode in every start_writing_to_stdio_file call
2011-07-19 11:11:34 -04:00
Nick Mathewson
2163e420b2
Merge remote-tracking branch 'public/bug3560'
2011-07-18 17:57:06 -04:00
Nick Mathewson
99348ce831
Bump version to 0.2.3.2-alpha-dev
2011-07-18 17:56:47 -04:00
Roger Dingledine
bceb136840
finish the changelog
2011-07-18 13:39:01 -04:00
Roger Dingledine
8cdec1e156
bump to 0.2.3.2-alpha
2011-07-18 13:20:54 -04:00
Roger Dingledine
25ad13ed9c
start folding in the 0.2.3.2-alpha changelog entries
2011-07-18 13:18:46 -04:00
Nick Mathewson
bb105ef1f6
Enhance findMergedChanges to allow looking at non-release targets
2011-07-18 12:43:39 -04:00
Nick Mathewson
be5aa47b55
Remove changes files already merged in 0.2.2.30-rc
2011-07-18 12:43:16 -04:00
Roger Dingledine
976027210b
forward-port the 0.2.2.30-rc changelog
2011-07-18 12:16:11 -04:00
Nick Mathewson
975150a13e
Better messages when we're stalled because of microdescriptors
...
It's a little confusing for me to say "only X/Y descriptors" when
I have microdescriptors enabled. So, let's fix that.
2011-07-15 19:38:27 -04:00
Nick Mathewson
b8943461c0
Fix bug in upload/download of hsdesc with microdescs
...
Previously we were using router_get_by_id(foo) to test "do we have a
descriptor that will let us make an anonymous circuit to foo". But
that isn't right for microdescs: we should have been using node_t.
Fixes bug 3601; bugfix on 0.2.3.1-alpha.
2011-07-15 18:55:12 -04:00
Nick Mathewson
8157dcbdf8
Merge remote-tracking branch 'sebastian/compile_warning'
2011-07-15 17:54:49 -04:00
Nick Mathewson
2b660f9781
Fix a wide line. "Tradition!"
2011-07-15 17:53:13 -04:00
Sebastian Hahn
2d0b56a505
Fix a compile warning on OS X 10.6
2011-07-15 23:12:43 +02:00
Nick Mathewson
6aef89bda4
Remove compare_addr_to_node_policy
...
Instead, use compare_tor_addr_to_node_policy everywhere.
One advantage of this is that compare_tor_addr_to_node_policy can
better distinguish 0.0.0.0 from "unknown", which caused a nasty bug
with microdesc users.
2011-07-15 13:04:12 -04:00
Nick Mathewson
f40df02f3e
Treat null address as "unknown", not "rejected" in md policy
...
Previously, we had an issue where we'd treat an unknown address as
0, which turned into "0.0.0.0", which looked like a rejected
address. This meant in practice that as soon as we started doing
comparisons of unknown uint32 addresses to short policies, we'd get
'rejected' right away. Because of the circumstances under which
this would be called, it would only happen when we had local DNS
cached entries and we were looking to launch new circuits.
2011-07-15 13:04:06 -04:00
Nick Mathewson
3380dc9cc0
Remove compare_addr_to_addr_policy
...
Nothing used it but the unit tests; everything else knows to use
compare_tor_addr_to_addr_policy instead.
2011-07-15 12:31:09 -04:00
Nick Mathewson
44cfa53873
Make WIN32_WINNT defines conditional
...
Requested by Gisle Vanem on tor-dev. I'm not quite sure this is the
right solution, but it's probably harmless.
2011-07-15 10:03:59 -04:00
Nick Mathewson
852b131281
Merge remote-tracking branch 'origin/maint-0.2.2'
...
Conflicts:
src/or/control.c
2011-07-14 17:22:23 -04:00
Nick Mathewson
866a2828bd
Merge branch 'bug3577' into maint-0.2.2
2011-07-14 17:20:01 -04:00
Nick Mathewson
2e34416c6d
Improve error msg on failed getinfo fingerprint
2011-07-14 17:19:52 -04:00
Nick Mathewson
642cff5bca
Only download microdesc consensus from caches that support it
...
Bugfix on 0.2.3.1-alpha; found by arma; never got a bug number.
2011-07-14 14:19:18 -04:00
Nick Mathewson
d67b304b20
Merge remote-tracking branch 'origin/maint-0.2.2'
2011-07-14 09:51:58 -04:00
Sebastian Hahn
5580fbb0c4
Update HACKING with some more release instructions
2011-07-14 09:51:24 -04:00
Nick Mathewson
5000e59b5f
Change GETINFO fingerprint to look at server_mode, not my_descriptor
...
It's possible for us to be a server and have a fingerprint without
having yet generated a descriptor.
Fixes bug 3577; bugfix on 0.2.0.1-alpha
2011-07-13 12:45:18 -04:00
Nick Mathewson
e8bfe89365
Resolve a warning from the bug1666 branch
2011-07-13 12:13:12 -04:00
Nick Mathewson
1aab5b6b39
Merge remote-tracking branch 'public/bug1666'
...
Conflicts:
doc/spec/socks-extensions.txt
src/or/buffers.c
src/or/config.c
src/or/connection_edge.c
2011-07-13 12:12:16 -04:00
Nick Mathewson
9a6642f6f5
Avoid warning in broken_state_count_compare
2011-07-12 11:23:55 -04:00
Nick Mathewson
16c5a62a66
Add more error checks to socks parsing code
...
Suggested by Linus to avoid uninitialized reads or infinite loops if
it turns out our code is buggier than we had thought.
2011-07-12 10:51:31 -04:00
Nick Mathewson
597da4989e
Merge branch 'bug2798'
2011-07-11 17:04:21 -04:00
Nick Mathewson
d82384658d
Tweaks to bug2798 based on comments by arma
2011-07-11 17:02:03 -04:00
Nick Mathewson
b49e561f01
Turn on microdescriptors for clients
2011-07-11 16:54:43 -04:00
Nick Mathewson
b55e31aeb4
Merge remote-tracking branch 'rransom-tor/bug3427'
2011-07-11 16:32:58 -04:00
Nick Mathewson
42ff326afa
Merge branch 'bug2616'
2011-07-11 16:22:12 -04:00
Nick Mathewson
e97eb6f254
Merge branch 'feature3116_squashed'
2011-07-11 16:16:11 -04:00
Nick Mathewson
2a594fcde9
Disable recording new broken conns when we have bootstrapped
...
Rationale: right now there seems to be no way for our bootstrap
status to dip under 100% once it has reached 100%. Thus, recording
broken connections after that point is useless, and wastes memory.
If at some point in the future we allow our bootstrap level to go
backwards, then we should change this rule so that we disable
recording broken connection states _as long as_ the bootstrap status
is 100%.
2011-07-11 16:13:17 -04:00
Nick Mathewson
e253e9577f
Clear broken connection map on successful bootstrap
2011-07-11 16:13:17 -04:00