| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
MSVC doesn't like them, and they're not necessary now that we have stdint.h.
Remove some compatibility typedefs from BoxPlatform.h and emu.h which are not
needed any longer either.
|
| |
|
| |
|
| |
|
|
|
|
| |
Detect that there are no remaining children to wait for, and return quietly.
|
|
|
|
|
| |
The new StartDaemon() and StopDaemon() in ServerControl.cpp/h are generic,
and used by StartClient() and StartServer() in StoreTestUtils.cpp/h.
|
|
|
|
|
|
| |
Make some keys not required in BackupDaemonConfigVerify, and verify them
afterwards instead, when the rest of the configuration file has been read
(and in future, the store type would be known.)
|
| |
|
|
|
|
| |
with it.
|
| |
|
| |
|
|
|
|
| |
Broken by previous changes to introduce overlapped I/O for writes.
|
|
|
|
| |
Improve correctness and reduce code duplication in bbackupctl.
|
| |
|
| |
|
|
|
|
|
| |
The mysterious case of the missing Write(const std::string&) in the
night-time, or rather in subclasses of IOStream which declares it.
|
| |
|
| |
|
|
|
|
|
| |
And compile errors on recent MinGW.
|
|
|
|
|
| |
OpenBSD's compiler appears to be more sensitive than others.
|
| |
|
| |
|
|
|
|
|
| |
Because they're not obvious and I wasted time trying to figure them out.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
OpenBSD requires different headers to be included, including a bug which
makes it essential to include sys/param.h before sys/ucred.h, and gives the
fields of struct ucred different names than Linux does.
This fixes compilation on OpenBSD and allows the user connecting to a UNIX
socket to be checked, increasing security of the command socket on this
platform.
|
|
|
|
|
|
| |
Now that we've removed it from version control, we need to build it from
configure.in as part of bootstrapping Box Backup.
|
| |
|
| |
|
|
|
|
| |
Prevents backup log files from becoming too large.
|
|
|
|
|
|
|
|
|
|
| |
Add a standard method to Replyable that will be called if a recoverable
exception (a BoxException) occurs, and can return a protocol Message to be
sent to the client, such as an error code for various standard errors, or
rethrow the exception.
If you want something different, catch exceptions and return the desired
reply yourself, or you'll get the default handling.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This will allow the client to eventually have more information about what went
wrong on the server, if the server admin agrees, and makes test debugging easier.
Backport some additional testbackupstore tests from the test refactor branch.
Merged back changes from the test refactor branch to reduce diffs.
|
|
|
|
|
|
| |
Makes way for more use of local protocol objects and protocol subclasses.
Merged back changes from the test refactor branch to reduce diffs.
|
|
|
|
|
|
| |
Hopefully all of these changes are inconsequential.
Merged back changes from the test refactor branch to reduce diffs.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
If the system is suspended then it may not realise that a TCP connection has
been closed, while waiting for data to arrive on it. We didn't used to apply
a timeout to this read operation. Now we use the connection's default timeout
on all read and write operations. Network operations that don't pass a timeout
will be logged with a backtrace, so that they can be fixed.
|
|
|
|
| |
We don't really need these, so clean up by removing them.
|
|
|
|
|
|
|
|
| |
Conflicts:
bin/bbackupd/BackupDaemon.cpp
bin/bbackupd/BackupDaemon.h
test/bbackupd/testbbackupd.cpp
|
| |
|
|
|
|
|
|
|
|
|
| |
Will hopefully help to debug Brendon Baumgartner's issue with backups not
completing and repeating over and over, due to this error:
> Apr 18 11:14:09 hosting bbackupd[18990]: WARNING: Exception thrown:
> ServerException(Protocol_BadUsage) (Sending a stream with a definite
> size of zero is not allowed in the protocol) at Protocol.cpp:703
|
|
|
|
|
|
|
| |
If libedit is installed then -ledit will be detected and added to the link
line, which makes the test for getpeereid pass. Then SocketStream.cpp tries
to use it, but that won't work unless we include bsd/unistd.h where the
prototype is declared.
|
|
|
|
| |
Allows command-line tools to reuse the same option processing.
|
|
|
|
|
|
|
|
|
| |
Allows retrieving the error message for a given code, when we no longer have
the protocol object handy.
Conflicts:
lib/server/makeprotocol.pl.in
|
| |
|