aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #3970Riccardo Spagni2018-11-061-2/+4
|\ \ | |/ |/| | | 3381b651 abstract_tcp_server2: fix busy calling of idle IO service (moneromooo-monero)
| * abstract_tcp_server2: fix busy calling of idle IO servicemoneromooo-monero2018-06-091-2/+4
| | | | | | | | | | This would make monerod use 100% CPU when running with torsocks without Tor running
* | Merge pull request #4489Riccardo Spagni2018-10-153-9/+9
|\ \ | | | | | | | | | | | | | | | | | | 00901e9c epee: initialize a few data members where it seems to be appropriate (moneromooo-monero) 144a6c32 abstract_tcp_server2: move m_period to subclass (moneromooo-monero) 758d7684 connection_basic: remove unused floating time start time (moneromooo-monero) e5108a29 Catch more exceptions in dtors (moneromooo-monero)
| * | epee: initialize a few data members where it seems to be appropriatemoneromooo-monero2018-10-021-1/+3
| | |
| * | abstract_tcp_server2: move m_period to subclassmoneromooo-monero2018-10-021-5/+6
| | | | | | | | | | | | This is where it is actually used, and initialized
| * | connection_basic: remove unused floating time start timemoneromooo-monero2018-10-021-3/+0
| | |
* | | Remove epee header dependency on cryptonote_coremoneromooo-monero2018-10-122-6/+5
|/ /
* | Merge pull request #4459Riccardo Spagni2018-09-292-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bcf3f6af fuzz_tests: catch unhandled exceptions (moneromooo-monero) 3ebd05d4 miner: restore stream flags after changing them (moneromooo-monero) a093092e levin_protocol_handler_async: do not propagate exception through dtor (moneromooo-monero) 1eebb82b net_helper: do not propagate exceptions through dtor (moneromooo-monero) fb6a3630 miner: do not propagate exceptions through dtor (moneromooo-monero) 2e2139ff epee: do not propagate exception through dtor (moneromooo-monero) 0749a8bd db_lmdb: do not propagate exceptions in dtor (moneromooo-monero) 1b0afeeb wallet_rpc_server: exit cleanly on unhandled exceptions (moneromooo-monero) 418a9936 unit_tests: catch unhandled exceptions (moneromooo-monero) ea7f9543 threadpool: do not propagate exceptions through the dtor (moneromooo-monero) 6e855422 gen_multisig: nice exit on unhandled exception (moneromooo-monero) 53df2deb db_lmdb: catch error in mdb_stat calls during migration (moneromooo-monero) e67016dd blockchain_blackball: catch failure to commit db transaction (moneromooo-monero) 661439f4 mlog: don't remove old logs if we failed to rename the current file (moneromooo-monero) 5fdcda50 easylogging++: test for NULL before dereference (moneromooo-monero) 7ece1550 performance_test: fix bad last argument calling add_arg (moneromooo-monero) a085da32 unit_tests: add check for page size > 0 before dividing (moneromooo-monero) d8b1ec8b unit_tests: use std::shared_ptr to shut coverity up about leaks (moneromooo-monero) 02563bf4 simplewallet: top level exception catcher to print nicer messages (moneromooo-monero) c57a65b2 blockchain_blackball: fix shift range for 32 bit archs (moneromooo-monero)
* | abstract_tcp_server2: fix binding to the wrong IPmoneromooo-monero2018-09-091-4/+4
| |
* | epee: use the socket::bind variant which does not throwmoneromooo-monero2018-08-271-2/+18
| | | | | | | | | | When this throws in a loop, stack trace generation can take a significant amount of CPU
* | Merge pull request #4177luigi11112018-08-151-0/+1
|\ \ | | | | | | | | | e7c0fcd epee: set jsonrpc to '2.0' in parse error return data (moneromooo-monero)
| * | epee: set jsonrpc to "2.0" in parse error return datamoneromooo-monero2018-07-251-0/+1
| | |
* | | Merge pull request #4130luigi11112018-08-152-1/+9
|\ \ \ | | | | | | | | | | | | 979105b abstract_tcp_server2: fix race on shutdown (moneromooo-monero)
| * | | abstract_tcp_server2: fix race on shutdownmoneromooo-monero2018-07-152-1/+9
| |/ /
* | | Merge pull request #4090luigi11112018-08-151-5/+13
|\ \ \ | |/ / |/| | | | | | | | 42f3b7c http_protocol_handler: catch invalid numbers when parsing (moneromooo-monero) 0a4a7da http_protocol_handler: fix HTTP/x.y parsing (moneromooo-monero)
| * | http_protocol_handler: fix HTTP/x.y parsingmoneromooo-monero2018-07-031-1/+1
| | | | | | | | | | | | It was accepting any character for the dot (yeah, massive big I know)
| * | http_protocol_handler: catch invalid numbers when parsingmoneromooo-monero2018-07-031-4/+12
| | |
* | | Merge pull request #4080Riccardo Spagni2018-07-031-2/+2
|\ \ \ | | | | | | | | | | | | dead780f abstract_tcp_server2: fix use after free (moneromooo-monero)
| * | | abstract_tcp_server2: fix use after freemoneromooo-monero2018-06-291-2/+2
| |/ /
* | | Merge pull request #3997Riccardo Spagni2018-07-031-4/+19
|\ \ \ | |/ / |/| | | | | 1a526ed5 abstract_tcp_server2: restart async accept on error (moneromooo-monero)
| * | abstract_tcp_server2: restart async accept on errormoneromooo-monero2018-06-181-4/+19
| |/
* | Merge pull request #3962luigi11112018-06-254-19/+75
|\ \ | | | | | | | | | 55c7fb8 epee: adaptive connection timeout system (moneromooo-monero)
| * | epee: adaptive connection timeout systemmoneromooo-monero2018-06-104-19/+75
| |/ | | | | | | | | | | | | | | | | | | | | a connection's timeout is halved for every extra connection from the same host. Also keep track of when we don't need to use a connection anymore, so we can close it and free the resource for another connection. Also use the longer timeout for non routable local addresses.
* | Merge pull request #3902luigi11112018-06-201-1/+1
|\ \ | | | | | | | | | | | | f8dd433 epee: fix detection of 172.16.0.0/172.31.255.255 local IP range (moneromooo-monero) 5db9e3c unit_tests: add tests for local IP range detection (moneromooo-monero)
| * | epee: fix detection of 172.16.0.0/172.31.255.255 local IP rangemoneromooo-monero2018-06-011-1/+1
| |/
* / wallet-rpc: added IPs to error logging in simple_http_connection_handlerjcktm2018-06-132-18/+18
|/
* http_protocol_handler: limit the number of starting newlinesmoneromooo-monero2018-05-273-1/+12
|
* abstract_tcp_server2: timeout on RPC connectionsmoneromooo-monero2018-05-262-1/+68
|
* http_protocol_handler: speedup newline discardingmoneromooo-monero2018-05-261-2/+5
|
* epee: Drop deprecated Boost.Thread headerJan Beich2018-04-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In file included from src/cryptonote_basic/hardfork.cpp:33: In file included from src/blockchain_db/blockchain_db.h:42: In file included from src/cryptonote_basic/hardfork.h:31: contrib/epee/include/syncobj.h:37:10: fatal error: 'boost/thread/v2/thread.hpp' file not found #include <boost/thread/v2/thread.hpp> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/rpc/daemon_handler.cpp:29: In file included from src/rpc/daemon_handler.h:36: In file included from src/p2p/net_node.h:41: In file included from contrib/epee/include/net/levin_server_cp2.h:32: In file included from contrib/epee/include/net/abstract_tcp_server2.h:324: contrib/epee/include/net/abstract_tcp_server2.inl:44:10: fatal error: 'boost/thread/v2/thread.hpp' file not found #include <boost/thread/v2/thread.hpp> // TODO ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ contrib/epee/include/math_helper.h: In member function 'bool epee::math_helper::average<val, default_base>::set_base()': contrib/epee/include/syncobj.h:227:56: error: 'sleep_for' is not a member of 'boost::this_thread' #define CRITICAL_REGION_LOCAL(x) {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));} epee::critical_region_t<decltype(x)> critical_region_var(x) ^ contrib/epee/include/syncobj.h:227:56: note: in definition of macro 'CRITICAL_REGION_LOCAL' #define CRITICAL_REGION_LOCAL(x) {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));} epee::critical_region_t<decltype(x)> critical_region_var(x) ^~~~~~~~~ contrib/epee/include/syncobj.h:227:56: note: suggested alternative: 'sleep' #define CRITICAL_REGION_LOCAL(x) {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));} epee::critical_region_t<decltype(x)> critical_region_var(x) ^ contrib/epee/include/syncobj.h:227:56: note: in definition of macro 'CRITICAL_REGION_LOCAL' #define CRITICAL_REGION_LOCAL(x) {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));} epee::critical_region_t<decltype(x)> critical_region_var(x) ^~~~~~~~~
* Fix typos in various filesDimitris Apostolou2018-03-152-2/+2
|
* Merge pull request #3226Riccardo Spagni2018-02-163-10/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e4646379 keccak: fix mdlen bounds sanity checking (moneromooo-monero) 2e3e90ac pass large parameters by const ref, not value (moneromooo-monero) 61defd89 blockchain: sanity check number of precomputed hash of hash blocks (moneromooo-monero) 9af6b2d1 ringct: fix infinite loop in unused h2b function (moneromooo-monero) 8cea8d0c simplewallet: double check a new multisig wallet is multisig (moneromooo-monero) 9b98a6ac threadpool: catch exceptions in dtor, to avoid terminate (moneromooo-monero) 24803ed9 blockchain_export: fix buffer overflow in exporter (moneromooo-monero) f3f7da62 perf_timer: rewrite to make it clear there is no division by zero (moneromooo-monero) c6ea3df0 performance_tests: remove add_arg call stray extra param (moneromooo-monero) fa6b4566 fuzz_tests: fix an uninitialized var in setup (moneromooo-monero) 03887f11 keccak: fix sanity check bounds test (moneromooo-monero) ad11db91 blockchain_db: initialize m_open in base class ctor (moneromooo-monero) bece67f9 miner: restore std::cout precision after modification (moneromooo-monero) 1aabd14c db_lmdb: check hard fork info drop succeeded (moneromooo-monero)
| * pass large parameters by const ref, not valuemoneromooo-monero2018-02-023-10/+10
| | | | | | | | Coverity 136394 136397 136409 136526 136529 136533 175302
* | Merge pull request #3252Riccardo Spagni2018-02-161-0/+3
|\ \ | | | | | | | | | f689a77e Fix #602 Turn on socket keepalive (Howard Chu)
| * | Fix #602 Turn on socket keepaliveHoward Chu2018-02-111-0/+3
| |/
* / Allow the number of incoming connections to be limitedErik de Castro Lopo2018-01-291-33/+45
|/ | | | | | It was already possible to limit outgoing connections. One might want to do this on home network connections with high bandwidth but low usage caps.
* Merge pull request #3098Riccardo Spagni2018-01-271-1/+1
|\ | | | | | | 935e39c7 levin_protocol_handler_async: erase from back of vector instead of front (stoffu)
| * levin_protocol_handler_async: erase from back of vector instead of frontstoffu2018-01-261-1/+1
| |
* | Update 2018 copyrightxmr-eric2018-01-264-4/+4
|/
* epee: remove dependency on commonmoneromooo-monero2018-01-104-7/+9
|
* Merge pull request #2936Riccardo Spagni2017-12-251-9/+12
|\ | | | | | | | | cb9aa23c levin_protocol_handler_async: another attempt at fixing at exception (moneromooo-monero) 64d23ce3 Revert "epee: keep a ref to a connection we're deleting" (moneromooo-monero)
| * levin_protocol_handler_async: another attempt at fixing at exceptionmoneromooo-monero2017-12-151-3/+12
| |
| * Revert "epee: keep a ref to a connection we're deleting"moneromooo-monero2017-12-151-8/+2
| | | | | | | | This reverts commit f2939bdce8c86b0f96921f731184c361106390c8.
* | Merge pull request #2930Riccardo Spagni2017-12-251-5/+9
|\ \ | | | | | | | | | 7f4bb612 levin_protocol_handler_async: add missing response handler locking (moneromooo-monero)
| * | levin_protocol_handler_async: add missing response handler lockingmoneromooo-monero2017-12-151-5/+9
| |/
* | Merge pull request #2920Riccardo Spagni2017-12-255-7/+20
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd5cce07 network_throttle: fix ineffective locking (moneromooo-monero) e0a61299 network_throttle: remove unused xxx static member (moneromooo-monero) 24f584d9 cryptonote_core: remove unused functions with off by one bugs (moneromooo-monero) b1634aa3 blockchain: don't leave dangling pointers in this (moneromooo-monero) 8e60b81c cryptonote_core: fix db leak on error (moneromooo-monero) 213e326c abstract_tcp_server2: log init_server errors as fatal (moneromooo-monero) b51dc566 use const refs in for loops for non tiny types (moneromooo-monero) f0568ca6 net_parse_helpers: fix regex error checking (moneromooo-monero) b49ddc76 check accessing an element past the end of a container (moneromooo-monero) 2305bf26 check return value for generate_key_derivation and derive_public_key (moneromooo-monero) a4240d9f catch const exceptions (moneromooo-monero) 45a1c4c0 add empty container sanity checks when using front() and back() (moneromooo-monero) 56fa6ce1 tests: fix a buffer overread in a unit test (moneromooo-monero) b4524892 rpc: guard against json parsing a non object (moneromooo-monero) c2ed8618 easylogging++: avoid buffer underflow (moneromooo-monero) 187a6ab2 epee: trap failure to parse URI from request (moneromooo-monero) 061789b5 checkpoints: trap failure to load JSON checkpoints (moneromooo-monero) ba2fefb9 checkpoints: pass std::string by const ref, not const value (moneromooo-monero) 38c8f4e0 mlog: terminate a string at last char, just in case (moneromooo-monero) d753d716 fix a few leaks by throwing objects, not newed pointers to objects (moneromooo-monero) fe568db8 p2p: use size_t for arbitrary counters instead of uint8_t (moneromooo-monero) 46d6fa35 cryptonote_protocol: sanity check chain hashes from peer (moneromooo-monero) 25584f86 cryptonote_protocol: print peer versions when unexpected (moneromooo-monero) 490a5d41 rpc: do not try to use an invalid txid in relay_tx (moneromooo-monero)
| * | network_throttle: remove unused xxx static membermoneromooo-monero2017-12-181-2/+0
| | |
| * | abstract_tcp_server2: log init_server errors as fatalmoneromooo-monero2017-12-181-1/+11
| | | | | | | | | | | | so they show up by default
| * | net_parse_helpers: fix regex error checkingmoneromooo-monero2017-12-181-2/+2
| | |
| * | add empty container sanity checks when using front() and back()moneromooo-monero2017-12-181-1/+1
| | |