summaryrefslogtreecommitdiff
path: root/lib/server/WinNamedPipeStream.cpp
Commit message (Collapse)AuthorAge
* Properly initialise pBytesTransferred before WaitForOverlappedOperation returns.Chris Wilson2015-12-24
| | | | | Returning an uninitialised value was causing copying of random amounts of data in bbackupd on command socket disconnect, and crashes.
* Fix overlapped I/O in WinNamedPipeStream.Chris Wilson2014-12-28
| | | | Broken by previous changes to introduce overlapped I/O for writes.
* Whitespace and comment fixes.Chris Wilson2014-12-28
| | | | Improve correctness and reduce code duplication in bbackupctl.
* Improve debugging of named pipe operations and bbackupctl pipe interaction.Chris Wilson2014-12-28
|
* Add support for timeouts on named pipe writes, using overlapped I/O.Chris Wilson2014-12-26
|
* Fix compile errors on Windows, thanks to Kai Liebenau for the patch.Chris Wilson2014-11-16
|
* Remove ServerException.h and the exception code aliases that it defines.Chris Wilson2014-08-15
| | | | We don't really need these, so clean up by removing them.
* Remove Win32 command socket thread, as it has caused too much trouble.Chris Wilson2008-10-03
| | | | | | | | | | | Handle command socket on Win32 the same as all other platforms, removing #ifdefs from BackupDaemon. Will replace this thread with regular but not excessive command socket polling using timers in future. Change error messages when command socket comms fail to make them clearer.
* Fix compile error.Chris Wilson2008-03-13
|
* Ignore ERR_NO_DATA while writing to control socket on Windows, as it Chris Wilson2008-03-13
| | | | | just means that the Pope is being closed.
* Prepend the system-required prefix to the named pipe name from theChris Wilson2007-10-17
| | | | | configuration file. (merges [1833])
* Replace almost all calls to syslog() with logging framework. (refs #3)Chris Wilson2007-07-31
|
* Don't log errors or throw exceptions when we get ERROR_NO_DATA, which justChris Wilson2007-04-20
| | | | | | | | | | | | | | | means that the pipe is being closed. Treat it as a normal remote close (EOF) instead. Don't log an error if DisconnectNamedPipe tells us that the remote end already closed the pipe (ERROR_PIPE_NOT_CONNECTED). Treat ERR_PIPE_NOT_CONNECTED during pipe reads as EOF as well. Improve logging of pipe errors by including the error message. (refs #3, merges [1458] and [1463])
* Improve logging of pipe errors by including the error message. (refs #3,Chris Wilson2007-03-24
| | | | | merges part of [1458])
* Change named pipe from message to byte mode. Thanks to Charles LeckliderChris Wilson2007-03-24
| | | | | for pointing this out.
* Use memmove() for overlapping source and destination buffer. Thanks toChris Wilson2007-03-24
| | | | | Charles Lecklider for pointing this out. (refs #3, merges [1442])
* Reinitialise the OVERLAPPED structure each time we start a new overlappedChris Wilson2007-03-24
| | | | | | read. Thanks to Charles Lecklider for pointing this out. (refs #3, merges part of [1458])
* Catch exceptions thrown by closing the WinNamedPipeStream during shutdownChris Wilson2007-03-10
| | | | | and suppress them. (refs #3, merges [1284])
* Use overlapped I/O to avoid blocking.Chris Wilson2006-10-16
| | | | | | Use INVALID_HANDLE_VALUE instead of NULL everywhere to avoid bugs, and for type safety. (refs #3)
* * lib/win32/WinNamedPipeStream.hChris Wilson2006-08-09
* lib/win32/WinNamedPipeStream.cpp * lib/server/WinNamedPipeStream.h * lib/server/WinNamedPipeStream.cpp - Moved WinNamedPipeStream class from lib/win32 to lib/server, to resolve circular dependency between lib/common and lib/win32.