aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net
Commit message (Collapse)AuthorAgeFilesLines
...
| * | epee: trap failure to parse URI from requestmoneromooo-monero2017-12-181-1/+6
| | |
* | | Merge pull request #2909Riccardo Spagni2017-12-251-0/+1
|\ \ \ | | | | | | | | | | | | dba2de61 levin_protocol_handler_async: call handler destroy function on dtor (moneromooo-monero)
| * | | levin_protocol_handler_async: call handler destroy function on dtormoneromooo-monero2017-12-111-0/+1
| | |/ | |/|
* | | http_client: rewrite header parsing manually for speedmoneromooo-monero2017-12-231-72/+93
| | | | | | | | | | | | boost::regex is stupendously atrocious at parsing malformed data
* | | tests: add http client fuzz testmoneromooo-monero2017-12-231-3/+14
| |/ |/|
* | Merge pull request #2877Riccardo Spagni2017-12-174-2/+444
|\ \ | | | | | | | | | | | | | | | 43f5269f Wallets now do not depend on the daemon rpc lib (moneromooo-monero) bb89ae8b move connection_basic and network_throttle from src/p2p to epee (moneromooo-monero) 4abf25f3 cryptonote_core does not depend on p2p anymore (moneromooo-monero)
| * | move connection_basic and network_throttle from src/p2p to epeemoneromooo-monero2017-12-164-2/+444
| | | | | | | | | | | | | | | These even had the epee namespace. This fixes some ugly circular dependencies.
* | | move includes around to lessen overall loadmoneromooo-monero2017-12-165-42/+11
|/ /
* | Merge pull request #2866Riccardo Spagni2017-12-161-5/+4
|\ \ | | | | | | | | | cf5f6236 Corrections in rate limiting / trottle code, especially in 'out' direction (rbrunner7)
| * | Corrections in rate limiting / trottle code, especially in 'out' directionrbrunner72017-11-281-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Deleted 3 out of 4 calls to method connection_basic::sleep_before_packet that were erroneous / superfluous, which enabled the elimination of a "fudge" factor of 2.1 in connection_basic::set_rate_up_limit; also ended the multiplying of limit values and numbers of bytes transferred by 1024 before handing them over to the global throttle objects
* | | Merge pull request #2860Riccardo Spagni2017-12-161-3/+3
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | 3dffe71b new wipeable_string class to replace std::string passphrases (moneromooo-monero) 7a2a5741 utils: initialize easylogging++ in on_startup (moneromooo-monero) 54950829 use memwipe in a few relevant places (moneromooo-monero) 000666ff add a memwipe function (moneromooo-monero)
| * | new wipeable_string class to replace std::string passphrasesmoneromooo-monero2017-11-271-3/+3
| |/
* | Merge pull request #2906Riccardo Spagni2017-12-101-3/+25
|\ \ | | | | | | | | | | | | 27aa8ce9 net_utils_base: fix peer list parsing (moneromooo-monero) fe5ab2c4 epee: fix kv_unserialize return value when a field is not found (moneromooo-monero)
| * | net_utils_base: fix peer list parsingmoneromooo-monero2017-12-091-3/+25
| |/ | | | | | | Fields are written with their "name" as key, and that name changed.
* / RPC: CORS add Access-Control-Allow-Headers to OPTIONS preflightTim L2017-11-161-0/+3
|/
* Merge pull request #2629Riccardo Spagni2017-11-141-2/+0
|\ | | | | | | 383ff4f6 remove "using namespace std" from headers (moneromooo-monero)
| * remove "using namespace std" from headersmoneromooo-monero2017-11-141-2/+0
| | | | | | | | | | | | | | It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
* | Merge pull request #2756Riccardo Spagni2017-11-146-0/+0
|\ \ | | | | | | | | | 0bf09154 Fix file permission issue (Tim L)
| * | Fix file permission issueTim L2017-11-036-0/+0
| | | | | | | | | | | | This branch fixes a file permission issue introduced by https://github.com/monero-project/monero/commit/69c37200aa87f100f731e755bdca7a0dc6ae820a
* | | Merge pull request #2753Riccardo Spagni2017-11-142-0/+11
|\ \ \ | |_|/ |/| | | | | fa514082 RPC: get_info add rpc_connections_count (Tim L)
| * | RPC: get_info add rpc_connections_countTim L2017-11-072-0/+11
| |/
* | Merge pull request #2617Riccardo Spagni2017-11-144-5/+26
|\ \ | |/ |/| | | 7dbf76d0 Fix an object lifetime bug in net load tests (moneromooo-monero)
| * Fix an object lifetime bug in net load testsmoneromooo-monero2017-10-094-5/+26
| | | | | | | | | | | | | | | | | | The commands handler must not be destroyed before the config object, or we'll be accessing freed memory. An earlier attempt at using boost::shared_ptr to control object lifetime turned out to be very invasive, though would be a better solution in theory.
* | Merge pull request #2663Riccardo Spagni2017-11-011-1/+9
|\ \ | | | | | | | | | | | | 4b228dd3 cmake: epee: use var from FindOpenSSL.cmake (redfish) 29497f79 epee: use boost type for SSL error code (redfish)
| * | epee: use boost type for SSL error coderedfish2017-10-171-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes compile error when building with OpenSSL v1.1: contrib/epee/include/net/net_helper.h: In member function ‘void epee::net_utils::blocked_mode_client::shutdown_ssl()’: contrib/epee/include/net/net_helper.h:579:106: error: ‘SSL_R_SHORT_READ’ was not declared in this scope if (ec.category() == boost::asio::error::get_ssl_category() && ec.value() != ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ)) ^ contrib/epee/include/net/net_helper.h:579:106: note: suggested alternative: ‘SSL_F_SSL_READ’ See boost/asio/ssl/error.hpp. Boost handles differences between OpenSSL versions. cmake: fail if Boost is too old for OpenSSL v1.1
* | | Merge pull request #2723Riccardo Spagni2017-10-316-17/+60
|\ \ \ | | | | | | | | | | | | 69c37200 RPC Add cross origin resource sharing support (Tim L)
| * | | RPC Add cross origin resource sharing supportTim L2017-10-306-17/+60
| |/ /
* / / net_helper: fix massive slowdown after SSL supportmoneromooo-monero2017-10-201-5/+5
|/ /
* | Merge pull request #2602Riccardo Spagni2017-10-151-2/+2
|\ \ | | | | | | | | | bc1b9333 frob level 1 logs a bit for consistency (moneromooo-monero)
| * | frob level 1 logs a bit for consistencymoneromooo-monero2017-10-071-2/+2
| |/ | | | | | | | | Level 1 logs map to INFO, so setting log level to 1 should show these. Demote some stuff to DEBUG to avoid spam, though.
* / epee http_client SSL supportJaquee2017-10-152-45/+107
|/
* Upgrades to epee::net_utils::network_addressLee Clagett2017-10-052-71/+127
| | | | | | | | - internal nullptr checks - prevent modifications to network_address (shallow copy issues) - automagically works with any type containing interface functions - removed fnv1a hashing - ipv4_network_address now flattened with no base class
* Merge pull request #2475Riccardo Spagni2017-10-021-2/+8
|\ | | | | | | f2939bdc epee: keep a ref to a connection we're deleting (moneromooo-monero)
| * epee: keep a ref to a connection we're deletingmoneromooo-monero2017-09-191-2/+8
| | | | | | | | | | | | | | close might end up dropping a ref, ending up removing the connection from m_connects, as the lock is recursive. This'd cause an out of bounds exception and kill the idle connection maker thread
* | Merge pull request #2467Riccardo Spagni2017-10-021-0/+3
|\ \ | | | | | | | | | 2e82b232 epee: give virtual dtor to network_address_base (moneromooo-monero)
| * | epee: give virtual dtor to network_address_basemoneromooo-monero2017-09-181-0/+3
| |/ | | | | | | It has virtual functions and is used as a base class
* | http_base: init size_t in http_request_info ctormoneromooo-monero2017-09-251-1/+2
| | | | | | | | CID 161879
* | Merge pull request #2302Riccardo Spagni2017-09-212-22/+15
|\ \ | |/ |/| | | | | ef005f5e p2p: add a couple early outs when the stop signal is received (moneromooo-monero) 80d361c7 abstract_tcp_server2: improve tracking/cancelling of early connections (moneromooo-monero)
| * abstract_tcp_server2: improve tracking/cancelling of early connectionsmoneromooo-monero2017-08-162-22/+15
| | | | | | | | | | | | | | We don't actually need to keep them past the call to start, as this adds them to the config object list, and so they'll then be cancelled already when the stop signal arrives. This allows removing the periodic call to cleanup connections.
* | http_client: add getters for host and portmoneromooo-monero2017-08-221-0/+3
|/
* Merge pull request #2149Riccardo Spagni2017-08-071-0/+14
|\ | | | | | | | | | | | | | | 158c3ecf core: thread most of handle_incoming_tx (moneromooo-monero) f57ee382 cryptonote_protocol: retry stale spans early (moneromooo-monero) 90df52e1 cryptonote_protocol: light cleanup (moneromooo-monero) 84e23156 cryptonote_protocol: avoid spurious SYNCHRONIZED OK messages (moneromooo-monero) 5be43fcd cryptonote_protocol_handler: sync speedup (moneromooo-monero)
| * cryptonote_protocol_handler: sync speedupmoneromooo-monero2017-08-071-0/+14
| | | | | | | | | | | | | | | | A block queue is now placed between block download and block processing. Blocks are now requested only from one peer (unless starved). Includes a new sync_info coommand.
* | Merge pull request #2220Riccardo Spagni2017-08-071-3/+0
|\ \ | | | | | | | | | c6ba7d11 p2p: move m_in_timedsync from connection_context to p2p_connection_context (moneromooo-monero)
| * | p2p: move m_in_timedsync from connection_context to p2p_connection_contextmoneromooo-monero2017-08-011-3/+0
| |/ | | | | | | It's got no place in the base class as it's P2P specific field
* | Merge pull request #2151Riccardo Spagni2017-08-071-1/+1
|\ \ | | | | | | | | | 13a8d64f epee: don't send the body of the response to a HEAD HTTP request (Guillaume LE VAILLANT)
| * | epee: don't send the body of the response to a HEAD HTTP requestGuillaume LE VAILLANT2017-07-051-1/+1
| | | | | | | | | | | | | | | | | | According to the HTTP spec: "The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response".
* | | Merge pull request #2153Riccardo Spagni2017-08-075-8/+8
|\ \ \ | |_|/ |/| | | | | 35d68b2c Fix spelling errors (Erik de Castro Lopo)
| * | Fix spelling errorsErik de Castro Lopo2017-07-055-8/+8
| |/
* | Merge pull request #2131Riccardo Spagni2017-07-191-3/+3
|\ \ | |/ |/| | | a04faf56 abstract_tcp_server2: guard against accessing lock on a destroyed object (moneromooo-monero)
| * abstract_tcp_server2: guard against accessing lock on a destroyed objectmoneromooo-monero2017-06-281-3/+3
| |