Changes 0 to 10 on this branch are displayed below, sorted in descending chronological order.

3442 days ago: Improve netsync serve_single_connection.
revision info | browse files | diff
Author: stephen_leake-2@stephe-leake.org
Changelog: Improve netsync serve_single_connection.
* netsync.cc (session::read_some): Improve failure error messages.
(serve_single_connection): Improve messages. Exit on unknown file
descriptor, read/write errors.
Date: Sun, 23 Dec 2007 23:41:11 GMT
3442 days ago: In netsync, terminate on protocol done, not on server disconnect, since
revision info | browse files | diff
Author: stephen_leake-2@stephe-leake.org
Changelog: In netsync, terminate on protocol done, not on server disconnect, since
can't detect that for StdioStream.
* netsync.cc (session::process): Add documentation comment.
(call_server): Terminate on session complete, in case we can't detect
the server dropping the connection.
(reap_dead_sessions): Fix comment; it does _not_ check for clients
that have exchanged all items.
(serve_single_connection): Register both file descriptors from
StdioStream, fix termination to match.
* netxx_pipe.cc :
(StdioStream::get_readfd): New.
(StdioStream::get_writefd): New.
(SpawnedStream::close): Wait for child to exit before closing sockets.
(UNIT_TEST): Can't do 'cat' test anymore; it does not exit on its own.
(UNIT_TEST): Improve stdio_spawn test.
Date: Sun, 23 Dec 2007 20:47:24 GMT
3443 days ago: SpawnedStream: test for server closing socket.
revision info | browse files | diff
Author: stephen_leake-2@stephe-leake.org
Changelog: SpawnedStream: test for server closing socket.
* netxx_pipe.cc (SpawnedStream::SpawnedStream): Duplicate handles before passing to child.
(StdioStream::close): Don't close stream twice if called twice.
(UNIT_TEST stdio_stream): Test for closed socket.
(unit_test_spawn): Test for closed socket.
* netxx_pipe_stdio_main.cc (main): Don't write 'quit' to closed socket.
Date: Sun, 23 Dec 2007 05:10:12 GMT
3444 days ago: StdioStream: close socket so client knows we disconnected.
revision info | browse files | diff
Author: stephen_leake-2@stephe-leake.org
Changelog: StdioStream: close socket so client knows we disconnected.
* netsync.cc (build_stream_to_server): Respect Lua hook
'use_transport_auth' even when get_netsync_connect_command returns nil.
* netxx_pipe.cc (StdioStream::close): Close socket so the client knows
the server disconnected.
(unit_test_spawn): Test closing socket.
* netxx_pipe_stdio_main.cc (main): Exit on 'quit' message, to allow
testing for closed socket.
Date: Sat, 22 Dec 2007 13:48:16 GMT
3450 days ago: Fixes for netxx_pipe.cc for Unix
revision info | browse files | diff
Author: stephen_leake-2@stephe-leake.org
Changelog: Fixes for netxx_pipe.cc for Unix
* netxx_pipe.cc (StdioStream::get_socketfd): Return readfd for unit test.
(StdioStream::StdioStream): Init readfd, writefd properly for Unix.
* netxx_pipe_stdio_main.cc (main): Remove bogus references to bytes_read.
Date: Sun, 16 Dec 2007 17:08:30 GMT
3450 days ago: More progress on file: on Win32; netxx_pipe unit tests pass. But netsync_over_pipes lua test still hangs.
revision info | browse files | diff
Author: stephen_leake-2@stephe-leake.org
Changelog: More progress on file: on Win32; netxx_pipe unit tests pass. But netsync_over_pipes lua test still hangs.
* netxx/probe.h (Netxx): minor cleanup
* netxx_pipe.cc (StdioStream::StdioStream): Don't need to set binary for
sockets on Win32.
(StdioStream::read): Use recv, send on Win32, copy loop logic from
netxx/socket.cxx.
(StdioStream::write): Ditto.
(err_msg): Move to win32/platform.cc
(StdioStream::set_socketfd): New for unit test.
(UNIT_TEST): Add pipe:stdio_stream, improve logic.
* netxx_pipe_stdio_main.cc (main): Delete read file support; doesn't work
with current version of Stdio_Stream. Add more information on exit;
exit on timeout, to match unit test use.
* platform.hh: Move win32_last_err_msg here.
* win32/process.cc (win32_last_err_msg): Move here from netxx_pipe.cc.
Date: Sun, 16 Dec 2007 17:10:30 GMT
3452 days ago: merge of '4493cee3f8e1e1c21dd9a0bacefeb4326fb2b0d3'
revision info | browse files | diff, diff
Author: stephen_leake-2@stephe-leake.org
Changelog: merge of '4493cee3f8e1e1c21dd9a0bacefeb4326fb2b0d3'
and 'dcdf41beed701392dc3c600064b893bddf3793e6'
Date: Fri, 14 Dec 2007 07:56:20 GMT
3452 days ago: In netxx_pipe StdioStream, always construct from stdin, stdout; use GetStdHandle on Win32.
revision info | browse files | diff
Author: stephen_leake-2@stephe-leake.org
Changelog: In netxx_pipe StdioStream, always construct from stdin, stdout; use GetStdHandle on Win32.
Date: Fri, 14 Dec 2007 07:55:52 GMT
3453 days ago: netxx_pipe.cc (StdioStream::StdioStream): Don't set StdioStream files
revision info | browse files | diff
Author: stephen_leake-2@stephe-leake.org
Changelog:
* netxx_pipe.cc (StdioStream::StdioStream): Don't set StdioStream files
non-blocking; fails if not sockets, not needed.
* netxx_pipe.cc (UNIT_TEST): Fix path to local executable.
Date: Thu, 13 Dec 2007 02:38:04 GMT
3453 days ago: merge of '7b10add17d23caedd53e54566b4c45b78610edc8'
revision info | browse files | diff, diff
Author: stephen_leake-2@stephe-leake.org
Changelog: merge of '7b10add17d23caedd53e54566b4c45b78610edc8'
and 'a9e0b4c057a8fd689d106041a727d4540bacbdcf'
Date: Thu, 13 Dec 2007 02:34:51 GMT
earlier changes recent changes (no later changes)