aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* remove unecessary and bad std::move from portable_storage_template_helper.hRiccardo Spagni2016-03-251-2/+2
|
* Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-213-4/+4
| | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.
* Merge pull request #736Riccardo Spagni2016-03-201-0/+8
|\ | | | | | | 2b4cab3 epee: fix potential hang on exit (moneromooo-monero)
| * epee: fix potential hang on exitmoneromooo-monero2016-03-201-0/+8
| | | | | | | | Also close sockets on failure, just in case
* | Print stack trace upon exceptionsmoneromooo-monero2016-03-193-4/+4
|/ | | | Useful for debugging users' logs
* epee: fix bug deleting more than one connection at oncemoneromooo-monero2016-03-121-0/+1
|
* Merge pull request #712Riccardo Spagni2016-03-114-19/+19
|\ | | | | | | | | 66c2fc7 Need to link boost::chrono in more places now (Howard Chu) b937a2c Use boost::thread instead of std::thread (Howard Chu)
| * Use boost::thread instead of std::threadHoward Chu2016-03-114-19/+19
| | | | | | | | and all other associated IPC
* | WIN32 thread_id is OS-dependent not compiler-dependentHoward Chu2016-03-111-1/+7
|/
* move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero2016-02-221-5/+12
| | | | | This avoids the need to define that variable in every program which uses epee.
* Fix crash in std::map for connections_mapHoward Chu2016-02-181-1/+2
| | | | Use boost::unordered_map instead.
* std::condvar is broken on Win32 with gcc/g++ 4.8 tooHoward Chu2016-02-181-6/+4
| | | | Use boost...
* Use boost::thread instead of std::threadHoward Chu2016-02-181-2/+3
| | | | std::thread crashes on (at least) ARMv6 g++ 4.8/4.9
* epee: always call the PRNG through the locked APImoneromooo-monero2016-02-131-1/+1
|
* epee: use generate_random_bytes for new random uuidsmoneromooo-monero2016-01-301-1/+6
| | | | | | Instead of using boost::uuids::generate_random, which uses uninitialized stuff *on purpose*, just to annoy people who use valgrind
* epee: remove dodgy random code that nobody usesmoneromooo-monero2016-01-301-9/+0
| | | | in case someone might want to use it
* Merge pull request #622Riccardo Spagni2016-01-251-1/+1
|\ | | | | | | | | | | e514f0a even more typos (Henning Kopp) 9abc4b8 more typos fixed (Henning Kopp) 0693f3c fixed typo (Henning Kopp)
| * more typos fixedHenning Kopp2016-01-251-1/+1
| |
* | OpenBSD support for Monero.me0wmix2016-01-211-0/+7
|/
* ARM chars are unsignedHoward Chu2016-01-031-1/+1
|
* IP_TOS not supported before Windows7Howard Chu2016-01-021-1/+4
|
* epee: regularly cleanup connections we kept a reference tomoneromooo-monero2015-12-232-4/+23
| | | | | | | | | | Since connections from the ::connect method are now kept in a deque to be able to cancel them on exit, this leaks both memory and a file descriptor. Here, we clean those up after 30 seconds, to avoid this. 30 seconds is higher then the 5 second timeout used in the async code, so this should be safe. However, this is an assumption which would break if that async code was to start relying on longer timeouts.
* epee: fix hang on exitmoneromooo-monero2015-12-222-1/+25
| | | | | | | | | | | | | | | | | | When the boost ioservice is stopped, pending work notifications will not happen. This includes deadline timers, which would otherwise time out the now cancelled I/O operations. When this happens just after starting a new connect operation, this can leave that operations in a state where it won't receive either the completion notification nor a timeout, causing a hang. This is fixed by keeping a list of connections corresponding to the connect operations, and cancelling them before stopping the boost ioservice. Note that the list of these connections can grow unbounded, as they're never cleaned up. Cleaning them up would involve working out which connections do not have any pending work, and it's not quite clear yet how to go about this.
* epee: make log macros behave like statementsmoneromooo-monero2015-12-191-22/+22
| | | | | | | In particular, make this kind of thing do what one expects it to do: if (x) LOG_PRINT("True"); else LOG_PRINT("No");
* console_handler: catch exception inside the input loopmoneromooo-monero2015-12-061-32/+37
| | | | | | | | | | This prevents an exception from existing the loop without calling the exit handler, if one is defined. The daemon defines one, which stops the p2p layer, and will only exit once the p2p layer is shut down. This would cause a hang upon an exception, as the input thread would have exited and the daemon would wait forever with no console user input.
* Merge pull request #507Riccardo Spagni2015-11-301-9/+21
|\ | | | | | | 62e49a5 wallet: optional automatic refresh from the daemon (moneromooo-monero)