| Commit message (Expand) | Author | Age |
* | Make a version of tor_read_all_handle() for non-Windows platforms•••Mainly used for testing reading from subprocesses. To be more generic
we now pass in a pointer to a process_handle_t rather than a Windows-
specific HANDLE.
| Steven Murdoch | 2011-09-01 |
* | Fix off-by-one error when allocating memory in test_util_split_lines()•••Triggered "failed OVER picket-fence magic-number check (err 27)" when
memory debugging using dmalloc is enabled (at 'low' or higher).
| Steven Murdoch | 2011-08-31 |
* | Add a missing include to util.c to get waitpid() on Linux | Nick Mathewson | 2011-08-31 |
* | Rename tor_join_cmdline to tor_join_win_cmdline; tweak doxygen | Nick Mathewson | 2011-08-30 |
* | Merge remote-tracking branch 'sjmurdoch/bug2046' | Nick Mathewson | 2011-08-30 |
|\ |
|
| * | Document limitation of log_from_handle with partial reads | Steven Murdoch | 2011-08-30 |
| * | Factor out and re-write code for splitting lines from a handle•••Now handles non-printable characters and will not output a spurious
new-line if given a partial line.
| Steven Murdoch | 2011-08-30 |
| * | Refactor out command line formatting•••Now correctly handles whitespace, quotes and backslashes. Passes all unit tests.
| Steven Murdoch | 2011-08-29 |
| * | Add a sanity check | Steven Murdoch | 2011-08-29 |
| * | Replace two magic tristates with #define'd names•••- process_handle_t.status
- return value of tor_get_exit_code()
| Steven Murdoch | 2011-08-29 |
| * | Make signature of tor_spawn_background more conventional•••Conventionally in Tor, structs are returned as pointers, so change
tor_spawn_background() to return the process handle in a pointer rather
than as return value.
| Steven Murdoch | 2011-08-28 |
| * | Appease "make check-spaces" | Steven Murdoch | 2011-08-24 |
| * | Improve comments and fix one bug | Steven Murdoch | 2011-08-24 |
| * | We don't need to find our own path, just tell Windows to search | Steven Murdoch | 2011-08-24 |
| * | Find test-child.exe by looking in same directory as test.exe | Steven Murdoch | 2011-08-24 |
| * | Fix compilation errors under *nix | Steven Murdoch | 2011-08-23 |
| * | Fix test cases to handle MSYS style paths (/c/foo rather than c:/foo)•••Also fix test case to expect 1 on successfully spawning a subprocess
| Steven Murdoch | 2011-08-22 |
| * | Tidy up subprocess code•••- Better error handling
- Write description of functions
- Don't assume non-negative process return values
| Steven Murdoch | 2011-08-22 |
| * | Fix some compiler warnings | Steven Murdoch | 2011-08-22 |
| * | Merge branch 'bug1983-port-tor-fw-helper-to-windows' into bug2046•••Conflicts:
configure.in
src/tools/tor-fw-helper/Makefile.am
src/tools/tor-fw-helper/tor-fw-helper-upnp.c
src/tools/tor-fw-helper/tor-fw-helper.c
| Steven Murdoch | 2011-08-22 |
| |\ |
|
| | * | Correct reference to libiphlpapi from libiphlapi | Steven Murdoch | 2011-08-22 |
| | * | Appease "make check spaces" | Steven Murdoch | 2011-08-22 |
| | * | Only link ws2_32 and iphlapi on windows.•••This is a tweak for the tor-fw-helper port to windows.
| Nick Mathewson | 2011-08-19 |
| | * | Link and build tor-fw-helper on Windows•••- Update configure script to test for libminiupnpc along with the
libws2_32 and libiphlpapi libraries required by libminiupnpc
- When building tor-fw-helper, link in libiphlpapi
- Link in libminiupnpc statically becasue I could not get the DLL
to link properly
- Call WSAStartup before doing network operations
- Fix up a compiler warning about uninitialized backend_state
N.B. The changes to configure.in and Makefile.am will break on non-
Windows platforms.
| Steven Murdoch | 2011-08-19 |
| * | | Merge remote branch 'origin/master' into bug2046 | Steven Murdoch | 2011-08-18 |
| |\ \ |
|
| * | | | Complete logging of output from port forwarding helper | Steven Murdoch | 2011-08-18 |
| * | | | Test case for reading the partial output of a background process | Steven Murdoch | 2011-07-25 |
| * | | | Fix compilation on non-Windows platforms | Steven Murdoch | 2011-07-23 |
| * | | | If hProcess is NULL, read_all_handle returns if it would block | Steven Murdoch | 2011-07-23 |
| * | | | Use PeekNamedPipe to avoid blocking ReadFile when there is nothing to read | Steven Murdoch | 2011-07-22 |
| * | | | 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
| Steven Murdoch | 2011-07-22 |
| * | | | Add Windows version of tor_spawn_background and ancillary functions | Steven Murdoch | 2011-07-21 |
| * | | | 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
| Steven Murdoch | 2011-07-21 |
| * | | | Under Windows, call WSAStartup before using the network | Steven Murdoch | 2011-07-21 |
| * | | | XXX Link in libiphlpapi (should be disabled on non Win32 platforms) | Steven Murdoch | 2011-07-21 |
| * | | | XXX Use static linking on Windows because miniupnpc doesn't work as DLL | Steven Murdoch | 2011-07-21 |
* | | | | Add a bufferevent note to startup log•••This should help us easily spot if a tor was built with
--enable-bufferevent or not
| Sebastian Hahn | 2011-08-29 |
* | | | | Fix compilation on non-bufferevent systems after 3803 fix: oops. | Nick Mathewson | 2011-08-29 |
* | | | | Split out rephist parts of buckets_decrement•••For bufferevents, we had all of connection_buckets_decrement() stubbed
out. But that's not actually right! The rephist_* parts were
essential for, inter alia, recording our own bandwidth. This patch
splits out the rephist parts of connection_buckets_decrement() into their
own function, and makes the bufferevent code call that new function.
Fixes bug 3803, and probably 3824 and 3826 too. Bugfix on 0.2.3.1-alpha.
| Nick Mathewson | 2011-08-29 |
* | | | | Clarify the heartbeat message a bit. | George Kadianakis | 2011-08-27 |
* | | | | Fix a bufferevent-related bug that killed tunneled dirserv conns•••Because tunneled connections are implemented with buffervent_pair,
writing to them can cause an immediate flush. This means that
added to them and then checking to see whether their outbuf is
empty is _not_ an adequate way to see whether you added anything.
This caused a problem in directory server connections, since they
would try spooling a little more data out, and then close the
connection if there was no queued data to send.
This fix should improve matters; it only closes the connection if
there is no more data to spool, and all of the spooling callbacks
are supposed to put the dirconn into dir_spool_none on completion.
This is bug 3814; Sebastian found it; bugfix on 0.2.3.1-alpha.
| Nick Mathewson | 2011-08-26 |
* | | | | Set write low-watermarks on all bufferevents.•••If we don't do this, then we never invoke the bufferevent write
callbacks until all the bufferevent's data is flushed.
| Nick Mathewson | 2011-08-24 |
* | | | | Add write watermarks to filtered bufferevents. | Nick Mathewson | 2011-08-24 |
* | | | | Apply rate-limiting to the lowest bufferevent in the stack.•••When we're doing filtering ssl bufferevents, we want the rate-limits
to apply to the lowest level of the bufferevent stack, so that we're
actually limiting bytes sent on the network. Otherwise, we'll read
from the network aggressively, and only limit stuff as we process it.
| Nick Mathewson | 2011-08-24 |
* | | | | Merge remote-tracking branch 'origin/maint-0.2.2' | Nick Mathewson | 2011-08-24 |
|\ \ \ \ |
|
| * | | | | lround() missing in MSVC•••lround() is missing in MS Visual-C's <math.h>. Not available anywhere.
Here is an easy patch.
| Gisle Vanem | 2011-08-24 |
* | | | | | Disable run-time changes to DisableIOCP: They do not work | Nick Mathewson | 2011-08-19 |
| |_|_|/
|/| | | |
|
* | | | | Remove warning about a loop parsing evbuffer socks•••This behavior is normal when we want more data than the evbuffer
actually has for us. We'll ask for (say) 7 bytes, get only 5
(because that's all there is), try to parse the 5 bytes, and get
told "no, I want 7". One option would be to bail out early whenever
want_length is > buflen, but sometimes we use an over-large
want_length. So instead, let's just remove the warning here: it's
not a bug after all.
| Nick Mathewson | 2011-08-18 |
* | | | | Appease "make check-spaces" | Nick Mathewson | 2011-08-18 |
* | | | | Automatically use filtering bufferevents with IOCP. | Nick Mathewson | 2011-08-18 |
| |_|/
|/| | |
|