Commit Graph

30 Commits

Author SHA1 Message Date
jolavillette
df1642bacd Fix jsonapi generator and OpenSSL macro collisions 2026-05-19 07:57:40 +02:00
Gioacchino Mazzurco
507edb05ad
Improve rs_error_bubble_or_exit debug ergonomy
The macro is now just a wrapper around a function so gdb can put
breakpoints in it.
Split in it's own file so stacktrace.h can be included directly into it
2023-11-05 18:29:37 +01:00
Gioacchino Mazzurco
a10087b27a
Make rsdebug and rsnet reusable from other projects 2023-10-13 19:46:46 +02:00
Gioacchino Mazzurco
4a83174093
Better fatal error reporting, broadcast discovery fix crash 2022-11-06 12:48:57 -03:00
Gioacchino Mazzurco
c501019bed
Suggest proper debugging macro in deprecation msg
instead of referring to the internal implementation
2022-01-18 01:01:39 +01:00
Phenom
00858e0788 Enable IPv6 DNS ExtIpFinder
Now empty node with only IPv6 can connect to other.
2021-11-05 22:48:41 +01:00
Phenom
3c224cfcd1 Add ability to retrieve External IP using DNS server.
IPV6 compatible.
2021-11-05 22:48:41 +01:00
Gioacchino Mazzurco
5c6e263936 Make DirStub serialization consistent on all architectures
Thanks elRepo.io developers to detect and report this bug with detail
https://gitlab.com/elRepo.io/elRepo.io-android/-/issues/52
2021-11-05 12:02:56 +01:00
Gioacchino Mazzurco
94bb85b94d First working prototype of GXS service search
Channels are now able to take advantage of the new deep search
  goodies

Rebase on top of master 2021/10/19
2021-10-28 09:51:29 +02:00
Gioacchino Mazzurco
fc60947346 Unify common error category message into a function 2020-06-09 20:08:23 +02:00
Gioacchino Mazzurco
87378f21a7 Fix Android armv7 compilation due to narrowing 2020-06-09 20:02:40 +02:00
Gioacchino Mazzurco
a89b3600fb Improve homogeneity of rsdebug
Offer variadic style macros also for RsInfo...RsFatal
2020-06-09 16:10:07 +02:00
Gioacchino Mazzurco
0e55ecdd07 Multiple improvements in debugging helpers
Add variadic style macro helpers that make debugging code disappear completely
  (also the paramethers evaluation) when debugging level is lower
Chained style << is now atomic like variadic style, still can't benefit
  of paramethers eveluation stripping
Reduced to minimum the difference between Android and other platform
  debugging code
Port debugging code to new helpers, expecially a few corner cases to
  test it, and as examples of how to use it.
2020-06-01 00:53:58 +02:00
Gioacchino Mazzurco
69562ed944 Merge branch 'atomic_variadic_log' 2020-05-30 22:11:04 +02:00
Gioacchino Mazzurco
b872a15043 rsdebug supports variadic style for atomic log 2020-05-29 01:09:10 +02:00
Gioacchino Mazzurco
f22cce95a2 Change raw memory JSON representation
Fix bug reported by b1rdG
The new way permits to add more formats in the future without breaking
  retro-compatibility again.
Add support for RsJson in rsdebug for Android
2020-05-28 23:01:04 +02:00
Gioacchino Mazzurco
a697816693 Better atomicity (not perfect) for RsDdg() and companions 2020-04-21 18:10:58 +02:00
Gioacchino Mazzurco
48aa2887a1 Improve debugging 2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
484e2a3917 Many serialization and related stuff improvements
Fix bug in array-like containers serialization which could cause almost infinite
  loop on malformed input
Implement VLQ integer serialization
Unify sequence containers serialization code
Add support for VLQ serialization also for string size
Use VLQ compression for file links
Add templated function to fix endiannes for all integer types
Use bitset to print flags in binary form
Unify serialization code for integral types
Serialize 64bit integers types to JSON object with both string and integer
  representation, so it is posible to have this representation also for
  containers types like std::vetor or std::map this breaks retrocompatibility
  but is necessary to support clients written in languages which doesn't have
  64 bit integers support such as JavaScript or Dart
2020-04-14 12:17:01 +02:00
Gioacchino Mazzurco
b9602473a0 Add millisecond details to debug messages timestamp 2020-04-05 23:02:53 +02:00
Gioacchino Mazzurco
2265451c2a Solve race condition in JSON API restart
Improve atomic access to restbed service
Protect JSON API restart against bursts
Fix JSON API error condition enum registration
Provide ostream helper for error_condition
Provide optional forced thread cancel for debugging purpose, disabled by
  default at compile time define RS_THREAD_FORCE_STOP to enable it
Avoid double fullstop in retroshare-gui json api apply button
2020-02-05 18:56:47 +01:00
Gioacchino Mazzurco
70156f03f8 Improve debugabbility of JSON API
JSON API server uses standardized error handling based on
  std::error_condition for a few method, this improve debugabbility both
  from library size and from API client side
JSON API auth token are now more flexible, now the only proibition is using
  colon character ':' in user name
Implemented TO_JSON operation for std::error_condition
Avoid unkown serial job handling code duplication via fatalUnknownSerialJob
Usability improvement in t_RsLogger
Disable compilation of now unused is_alphanumeric
2020-01-27 21:22:49 +01:00
Gioacchino Mazzurco
0092032948 Introduce RetroShare logging helpers
Support for chaining like std::cerr
Support for compile-time optimization without #ifdef around
Support for Android native logging without depending on
  AndroidStdIOCatcher workaround
Support for automatic timestamp (on Android it's provided by Android
  native log)
Standardized messages categories
2019-04-28 02:31:44 +02:00
csoler
b6f8eba616 relicensed tcponudp, turtle, unused, upnp, and part of util/ 2018-05-30 21:19:13 +02:00
sehraf
760efc193d removed dead code and cleanup 2016-06-18 13:11:21 +02:00
sehraf
527d49c263 switched to new rslog method 2016-06-18 13:00:15 +02:00
sehraf
0667906501 switched to caller providing all needed information instead of saving those on callee side 2016-06-17 11:09:59 +02:00
csoler
9c15382e9a removed systematic printout of outgoing items which killed performance (patch from electron)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7994 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-03-08 08:48:00 +00:00
thunder2
7841665e2f Removed some std::ostringstream.
To be continued.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5097 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-14 00:30:23 +00:00
drbob
d25913d389 Major cleanup of Retroshare Logging - aimed at enabling proper UDP testing.
* Switched off most of std::cerr output. (expect UPnP)
 * moved pqi/pqidebug to util/rsdebug to allow greater usage.
 * added Mutexes to logging.
 * Downgraded many log messages to DEBUG.
 * New Log messages for connections, dht and udp code.
 * Added check for bad UDP socket.
 * Added check for non-firewalled scenario.
 * Increased Storage period from 1 Month to 6 Months for Links & Blog.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@644 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-07-10 16:29:18 +00:00