summaryrefslogtreecommitdiff
path: root/contrib/epee/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1762Riccardo Spagni2017-02-221-1/+1
|\ | | | | | | dcf684c7 http_server_impl_base: set bind message to MGINFO (anonimal)
| * http_server_impl_base: set bind message to MGINFOanonimal2017-02-211-1/+1
| |
* | update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-211-1/+1
|/
* http_client: add a couple constsmoneromooo-monero2017-02-201-2/+2
|
* Merge pull request #1717Riccardo Spagni2017-02-121-5/+5
|\ | | | | | | | | 8bdc86be protocol: speed up sync by minimizing duplicate work (moneromooo-monero) 61dfa310 epee: fix some log macros not printing context nicely (moneromooo-monero)
| * epee: fix some log macros not printing context nicelymoneromooo-monero2017-02-121-5/+5
| |
* | Fixup choice of easylogging++ vs libunwind stack trace codemoneromooo-monero2017-02-121-2/+3
|/
* Merge pull request #1693Riccardo Spagni2017-02-111-0/+2
|\ | | | | | | 5d00659e disable ELPP_STACKTRACE_ON_CRASH for android (MoroccanMalinois)
| * disable ELPP_STACKTRACE_ON_CRASH for androidMoroccanMalinois2017-02-061-0/+2
| |
* | Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett2017-02-066-42/+82
|/
* Use easylogging++'s stack trace facility where possiblemoneromooo-monero2017-02-041-1/+2
| | | | This avoids using libunwind, which often causes trouble.
* Updates to epee HTTP client codeLee Clagett2017-01-254-200/+80
| | | | | | | | - http_simple_client now uses std::chrono for timeouts - http_simple_client accepts timeouts per connect / invoke call - shortened names of epee http invoke functions - invoke command functions only take relative path, connection is not automatically performed
* removing some unsed epee filesmoneroexamples2017-01-201-132/+0
|
* Change logging to easylogging++moneromooo-monero2017-01-1630-1458/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
* Merge pull request #1561Riccardo Spagni2017-01-151-1/+1
|\ | | | | | | | | | | | | | | | | | | d561f4ad enable clang checks that were disabled (Chris Vickio) 0aefb2f6 remove std::move from return statements (pessimizing-move warning) (Chris Vickio) 629d5b76 change counter from bool to int (deprecated-increment-bool warning) (Chris Vickio) fb76d439 add extra braces around subobjects (missing-braces warning) (Chris Vickio) 3b6d5f25 make struct/class declarations consistent (mismatched-tags warning) (Chris Vickio) fcf66925 remove unused fields from network_throttle (unused-private-field warning) (Chris Vickio) 296f8c16 inline unused function (for unused-function warning) (Chris Vickio)
| * inline unused function (for unused-function warning)Chris Vickio2017-01-141-1/+1
| |
* | Added (not yet enabled) HTTP client authenticationLee Clagett2017-01-113-22/+101
|/
* Merge pull request #1514Riccardo Spagni2017-01-081-3/+10
|\ | | | | | | fa0ee42c Workarounds for gcc 4.8 (Lee Clagett)
| * Workarounds for gcc 4.8Lee Clagett2016-12-301-3/+10
| |
* | Build wallet with Android NDKMoroccanMalinois2017-01-051-1/+1
|/
* Adding HTTP Digest Auth (but not yet enabled)Lee Clagett2016-12-134-6/+103
|
* Merge pull request #1403Riccardo Spagni2016-12-041-1/+1
|\ | | | | | | 60633cf6 Spelling in errors (taushet)
| * Spelling in errorstaushet2016-12-041-1/+1
| |
* | Merge pull request #1385Riccardo Spagni2016-12-041-0/+30
|\ \ | | | | | | | | | | | | | | | 5783dd8c tests: add unit tests for uri parsing (moneromooo-monero) 82ba2108 wallet: add API and RPC to create/parse monero: URIs (moneromooo-monero) d9001b43 epee: add functions to convert from URL format (ie, %XX values) (moneromooo-monero)
| * | epee: add functions to convert from URL format (ie, %XX values)moneromooo-monero2016-11-281-0/+30
| |/
* / epee: signal cond var before unlockingmoneromooo-monero2016-11-281-1/+1
|/ | | | This is more canonical, and avoids some helgrind spam
* Merge pull request #1372Riccardo Spagni2016-11-241-3/+3
|\ | | | | | | 17b6bd6 Fix DNS failures in offline mode preventing daemon startup (moneromooo-monero)
| * Fix DNS failures in offline mode preventing daemon startupmoneromooo-monero2016-11-231-3/+3
| |
* | epee: blind attempt to fix exit hang on windowsmoneromooo-monero2016-11-171-0/+14
|/ | | | | | Thanks to duckduckgo and the internet. This might even compile.
* levin: fix wrong value passed as return code to remote callmoneromooo-monero2016-11-121-1/+1
| | | | | | | | When receiving an answer packet, the command code was passed to the callback instead of the error code. This was hiding the "command not found" failure from the peer, and in turn causing the code to attempt to deserialize a non existent reply string.
* adding static_assert to pod functions in string toolsLee Clagett2016-10-311-0/+4
|
* Unkonown -> unknownNanoAkron2016-10-271-1/+1
|
* Removed all code related to fast_exitNanoAkron2016-10-032-14/+1
|
* epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero2016-09-185-12/+31
| | | | | | | | This is intended to catch traffic coming from a web browser, so we avoid issues with a web page sending a transfer RPC to the wallet. Requiring a particular user agent can act as a simple password scheme, while we wait for 0MQ and proper authentication to be merged.
* epee: do not try network resolution if loopback workedmoneromooo-monero2016-09-011-1/+1
| | | | | Fixes the wallet being unable to connect to the daemon when there is no NIC.
* Merge pull request #884Riccardo Spagni2016-07-061-4/+9
|\ | | | | | | c2ad9ca allow peers without port (moneromooo-monero)
| * allow peers without portmoneromooo-monero2016-07-031-4/+9
| | | | | | | | The default port is then used
* | contrib: epee: add missing noexcept spec to class declredfish2016-06-221-1/+1
|/ | | | | | The noexcept specs were added to make GCC 6.1.1 happy (#846), but this one was missing (because GCC did not complain about it on Linux, but does complain on OSX).
* Merge pull request #862Riccardo Spagni2016-06-191-1/+3
|\ | | | | | | | | 5dc09f2 wallet_rpc_server: fix some string values being returned between <> (moneromooo-monero) f8213c0 Require 64/16 characters for payment ids (moneromooo-monero)
| * Require 64/16 characters for payment idsmoneromooo-monero2016-06-191-1/+3
| | | | | | | | | | | | | | The default behavior for hex string parsing would allow the last digit to be made from a single hexadecimal character, which is correct, but we typically do not want that as it gets confusing and easy to not spot wrong input size.
* | contrib: epee: add exception spec to throwing destructorsredfish2016-05-183-3/+3
|/ | | | | | | The destructors get a noexcept(true) spec by default, but these destructors in fact throw exceptions. An alternative fix might be to not throw (most if not all of these throws are non-essential error-reporting/logging).
* Merge pull request #840Riccardo Spagni2016-05-171-2/+4
|\ | | | | | | | | 1c0bffb Restrict also 'get_connections' and 'getbans' APIs. (osensei) 9f8bc49 Don't allow 'flush_txpool' and 'setbans' JSON_RPC methods when running in restricted mode. (osensei)
| * Don't allow 'flush_txpool' and 'setbans' JSON_RPC methods when running in ↵osensei2016-05-141-2/+4
| | | | | | | | restricted mode.
* | core: move tx_extra parsing errors to log level 1moneromooo-monero2016-05-011-1/+9
|/ | | | They're not fatal, though indicate something wrong
* abstract_tcp_server2: fix send queue limit warning spammoneromooo-monero2016-04-171-1/+1
| | | | | | | | | When the send queue limit is reached, it is likely to not drain any time soon. If we call close on the connection, it will stay alive, waiting for the queue to drain before actually closing, and will hit that check again and again. Since the queue size limit is the reason we're closing in the first place, we call shutdown directly.
* abstract_tcp_server2: avoid deadlock waiting for send queue to drainmoneromooo-monero2016-04-171-2/+5
| | | | | | | | | If we reach the send queue size limit, we need to release the lock, or we will deadlock and it will never drain. If we reach that limit, it's likely there's another problem in the first place though, so it will probably not drain in practice either, unless some kind of transient network timeout.
* Merge pull request #799Riccardo Spagni2016-04-061-5/+7
|\ | | | | | | aaaf9e2 Fix get_tick_count() on Windows (Howard Chu)
| * Fix get_tick_count() on WindowsHoward Chu2016-04-061-5/+7
| | | | | | | | | | GetTickCount used in 52056dcfc480a126e06afaf209b1772b6aa77fb3 only has ~10-16ms resolution. Use higher rez timer to get 1ms rez.
* | epee: flush output after a messagemoneromooo-monero2016-04-021-0/+1
|/ | | | | This is equivalent to line buffering, as C++ seems to lack a setvbuf equivalent which alows line buffering.
* abstract_tcp_server2: possible fix for exception in handle_acceptmoneromooo-monero2016-03-271-4/+17
|