Commit Graph

4779 Commits

Author SHA1 Message Date
zugz (tox)
9770880e97
Implement conferences saving
* add global friend_connection status callback, used for group rejoining
* stop leaving groups on killing tox
2018-11-29 21:52:23 +01:00
zugz (tox)
caca350f43
Avoid format truncation in save compatibility test
(without this, gcc-8.2.0 issues a warning)
2018-11-23 18:09:45 +01:00
zugz (tox)
0bf90df5e1
Return TOX_ERR_CONFERENCE_SEND_MESSAGE_NO_CONNECTION if we are not connected to any peers 2018-11-23 17:53:50 +01:00
iphydf
60cd08e774
Upgrade bazel to 0.19.0 to fix the bazel build. 2018-11-22 21:51:40 +00:00
Maxim Biro
d89f83f8b5
Build tox-bootstrapd on FreeBSD Travis-CI 2018-11-04 20:10:20 -05:00
Maxim Biro
5530e41742
Increase NOFILE limit for tox-bootstrapd
tox-bootstrapd can use around 600 TCP sockets during TCP server's normal
functioning. Many systems default to having a soft limit of 1024 open file
descriptors, which we are close to reaching, so it was suggested we bump that
limit to a higher number. iphy suggested increasing it to 32768.
2018-11-04 20:10:09 -05:00
zugz (tox)
b56166f5a6
Add some hopefully helpful documentation to the functions in mono_time.h
(I found I couldn't remember whether get_mono_time returned unix time or
not, and had to source-dive to find out. This should make that
unnecessary next time!)
2018-10-31 19:34:52 +01:00
NamsooCho
15cc8050d2
Change method of PK production for fake friend in DHT 2018-10-24 13:05:32 +02:00
zugz (tox)
744dc2f5da
Make saving and loading the responsibility of Tox rather than Messenger 2018-10-20 11:03:10 +02:00
iphydf
aa5c782880
Add LOGGER_ASSERT for checking fatal error conditions.
These are not compiled out under `NDEBUG` and should be provably correct.
2018-10-19 18:08:46 +00:00
iphydf
1eaa55d2d4
Include CTest in CMakeLists.txt to get valgrind support.
We can now run `ctest --output-on-failure -D ExperimentalMemCheck -j 50`
to run valgrind on all tests.
2018-10-17 19:25:33 +00:00
Maxim Biro
b6dde3c76f
Use cmake to build toxcore in tox-boostrapd's Dockerfile 2018-10-17 14:45:44 -04:00
Maxim Biro
9b98ac1342
tox-bootstrapd's Dockerfile shouldn't use master branch 2018-10-17 14:45:36 -04:00
Maxim Biro
f45bf686ae
Don't warn about macro expansion in run-clang 2018-10-16 21:35:44 -04:00
Maxim Biro
1cbc9609a7
Make tox-bootstrapd free memory on SIGINT and SIGTERM
Useful for using memory analyzing tools.
2018-10-16 21:35:27 -04:00
iphydf
700accb3c7
Use bool for IPv6 flag in test programs and DHT_bootstrap. 2018-10-16 22:11:53 +00:00
Leonid Bobrov
ed9beef61c
Support DragonFlyBSD and prune unused variables. 2018-10-16 22:01:00 +00:00
zugz (tox)
4dd86f1f29
ensure save data unchanged after save and load 2018-10-11 00:21:39 +02:00
iphydf
605dfe882c
Consistently use camel case enum names.
Including in tests and implementation files.
2018-10-09 17:33:37 +00:00
iphydf
77e025fae4
Remove Alpine Linux bootstrap daemon dockerfile.
We can add it back when there is a test for it. For now, we don't know
whether it works and don't have tests to make sure it keeps working.
2018-10-08 23:00:35 +00:00
iphydf
15d64221f1
Add LAN_discovery to the list of apidsl-generated files.
So it gets regenerated when the .api.h file changes.
2018-10-08 22:38:26 +00:00
iphydf
3e58f3cd4d
Improve Windows compatibility of toxav code.
- unistd.h doesn't exist on MSVC.
- `vpx_codec_iface_t` is already `const`, so adding `const` qualifiers is
  redundant and causes warnings on MSVC.
2018-10-08 22:22:58 +00:00
chrono
17a7bf3fd2
Add AUTOTEST Option to CMakeLists.txt 2018-10-07 22:09:54 +00:00
Robin Lindén
3f35a84968
Release 0.2.8 2018-10-07 23:21:24 +02:00
Maxim Biro
56432a44c6
Make sure logger levels stay in sync across files 2018-10-07 15:16:00 -04:00
Maxim Biro
f5afc52655
Default to not defining MIN_LOGGER_LEVEL in CMake
That way CMake's behavior matches what autotools does -- letting
toxcore/logger.h handle the default case.
2018-10-07 15:15:58 -04:00
Maxim Biro
11e1f63f54
Fix logger level defaulting to TRACE in CMake 2018-10-07 15:15:44 -04:00
zugz (tox)
5beb00c93d
Fix memleak in tcp server by wiping priority queues on deletion 2018-10-07 20:13:51 +02:00
iphydf
b2b96b1aa1
Avoid use of IPv6 in tests if not supported (e.g. on Travis). 2018-10-06 21:27:02 +00:00
irungentoo
bf69b54f64 Fix memory leak when closing TCP connection.
Thanks to: https://github.com/TokTok/c-toxcore/pull/1216
2018-10-03 08:44:02 -04:00
iphydf
c7365b14f3
Remove a function-like macro and replace it with a function.
No use making this a macro. LTO will inline this anyway, if we care about
performance. Generally, we avoid function-like macros that can be functions.
2018-09-26 12:36:06 +00:00
iphydf
a94d032586
Use new @pthread library from Bazel for Windows compat.
See https://github.com/TokTok/toktok-stack/pull/38.
2018-09-26 00:01:15 +00:00
iphydf
4f266f913d
Use a working DHT node for bootstrap tests.
A lot of bootstrap nodes are down :(.
2018-09-25 21:19:07 +00:00
iphydf
bfd288c196
Revert "Improve cmake build for MSVC."
This reverts commit f87f8719d0.
2018-09-24 22:25:49 +00:00
zugz (tox)
d5d6e3f60f
Combine last_reported_announced with last_seen in Onion_Friend
This resets friend search rate in two circumstances where it should be
reset:
* When the friend gets a dhtpk packet to us;
* When a friend connection to the friend goes down.
2018-09-25 00:08:08 +02:00
iphydf
b694dbc223
Add Cirrus CI configuration.
This CI can run Bazel tests, because it supports IPv6. This is nice,
because now we can run IPv6 tests on every PR.
2018-09-24 22:00:17 +00:00
iphydf
8bb5be3525
Run tests on Appveyor (Windows native build).
We ignore the errors for now.
2018-09-23 00:17:06 +00:00
iphydf
9c7c924e3c
Run UBSAN (undefined behaviour sanitizer) on Circle CI.
This runs in the same build as asan, so "asan" now stands for both asan
and ubsan.
2018-09-22 12:27:58 +00:00
Mick Sayson
f87f8719d0
Improve cmake build for MSVC. 2018-09-22 11:14:45 +00:00
Mick Sayson
dc0b2e7919
Fix using uninitialized mutex on call end. 2018-09-21 20:44:24 +00:00
zugz (tox)
e43b2eadc0
Send rejoin packets on conference disconnection
We were mistakenly not making a rejoin attempt on freezing connections
due to all closest connections going down. This fixes that, and tweaks
the test. I've still only done tens rather than hundreds of tests, but
I'm fairly confident that the conference test now consistently passes.
2018-09-20 22:30:28 +02:00
yangfl
d3d5b701cb
Fix typos 2018-09-19 18:16:13 +00:00
iphydf
758bd9aa87
Fix yamllint test (it's gone from bazel, add a new one). 2018-09-19 09:55:58 +00:00
iphydf
2abc00693c
Format yaml files according to yamllint's requirements.
Also remove branch filter for appveyor. We only have a single branch in
every repository. Development happens in forks.
2018-09-16 14:47:23 +00:00
hugbubby
889e89b3dd
Fixed a silly boolean practice using uint8_t 2018-09-16 09:13:03 -05:00
iphydf
e0f9f2f3a7
Use most recent version of Bazel (0.17.1). 2018-09-14 22:19:28 +00:00
iphydf
49bb43f662
Standardise header guards.
Using the full path including the repo name.
2018-09-14 19:09:10 +00:00
iphydf
7821cd8412
Use C++ style casts in C++ code. 2018-09-14 14:08:27 +00:00
hugbubby
0688877fba
Use run_auto_test fixture in typing_test.c 2018-09-14 13:51:41 +00:00
iphydf
9f1757e3a5
Assert that we don't kill tox before killing toxav.
Possibly this is what's happening in #1149.
2018-09-10 18:51:51 +00:00