tobtoht
43cb148952
Merge pull request #10517
...
a5abe71 epee: fix memory leak with readline (ComputeryPony)
2026-05-10 17:43:09 +00:00
ComputeryPony
a5abe71486
epee: fix memory leak with readline
2026-05-09 16:30:13 -05:00
tobtoht
49ea802139
Merge pull request #9899
...
05ab316 epee: better scope leaver (jeffro256)
2026-05-06 19:34:39 +00:00
jeffro256
05ab316853
epee: better scope leaver
...
1. Doesn't allocate a `boost::shared_ptr`
2. Doesn't use a vtable
3. Doesn't use `std::function` wrapper
4. Doesn't necessarily copy functional object
5. Doesn't need a factory function for simple declaration (yay CTAD)
6. Isolated to its own header
7. Name doesn't suck as much
2026-05-06 11:59:00 -05:00
tobtoht
8b79bfc836
Merge pull request #10485
...
5723d6b epee: remove save_limit_to_file (tobtoht)
2026-05-04 16:39:19 +00:00
tobtoht
2d48a39658
Merge pull request #10483
...
0617f43 fix: warning: ignored-attributes (tobtoht)
2cf3e27 fix: warning: unused-result (tobtoht)
d8f27be fix: warning: unused-function (tobtoht)
ffbb0cc fix: warning: unused-const-variable (tobtoht)
57975ab fix: warning: deprecated-declarations (tobtoht)
3294b8e fix: warning: unused-variable (tobtoht)
20f6f5f fix: warning: unused-lambda-capture (tobtoht)
37e76ec fix: warning: inconsistent-missing-override (tobtoht)
2026-05-04 16:36:28 +00:00
tobtoht
0617f433be
fix: warning: ignored-attributes
2026-04-29 10:21:40 +02:00
j-berman
17ce9ac0df
p2p: wait_for on shutdown instead of indefinite wait
2026-04-28 16:20:44 -07:00
tobtoht
5723d6b6f1
epee: remove save_limit_to_file
2026-04-28 19:21:12 +02:00
j-berman
0150d45e39
connection: try-catch handles
2026-04-21 12:00:56 -07:00
tobtoht
49f3fabbf4
Merge pull request #10382
...
742c629 p2p: fix hanging shutdown (j-berman)
2026-04-07 09:01:30 +00:00
tobtoht
99addbcc91
Merge pull request #10357
...
3e2c837 Cleanup some of the fragmented levin handling (Lee *!* Clagett)
2026-04-04 18:44:46 +00:00
tobtoht
095b06a6e6
Merge pull request #10386
...
1c97b0d abstract_tcp_server2: add missing return (selsta)
2026-03-31 09:35:30 +00:00
tobtoht
7cfd6f2d22
Merge pull request #10363
...
3d6b9fb Harden HTTP client auth (Lee *!* Clagett)
2026-03-28 19:50:11 +00:00
selsta
1c97b0d0f2
abstract_tcp_server2: add missing return
2026-03-26 22:58:32 +01:00
j-berman
742c62928a
p2p: fix hanging shutdown
2026-03-25 13:27:44 -07:00
Lee *!* Clagett
3d6b9fb568
Harden HTTP client auth
2026-03-13 13:41:15 -04:00
Lee *!* Clagett
3e2c837b26
Cleanup some of the fragmented levin handling
2026-03-11 13:37:22 -04:00
Lee *!* Clagett
44869250bd
Transition asio::deadline_timer to asio::steady_timer
2026-02-17 11:28:57 -05:00
j-berman
7d1f779530
p2p: connection patches
...
- Make sure the server sends a complete response when the client
includes the "Connection: close" header.
- Make sure the server terminates in `m_strand` to avoid
concurrent socket closure and ops processing.
2026-01-15 22:30:43 -08:00
tobtoht
b3614d6b3f
Merge pull request #10170
...
ece0342 epee: align container pod as blob serialization (jeffro256)
2025-11-26 19:39:45 +00:00
j-berman
c01e1fa288
Fix logging deadlock
2025-11-11 10:43:39 -08:00
jeffro256
ece0342cb5
epee: align container pod as blob serialization
...
`{un}serialize_stl_container_pod_val_as_blob()` use aligned memory accesses on potentially unaligned pointers.
2025-10-14 16:05:43 -05:00
selsta
ca484323c3
epee: only parse valid port
...
Reported by hacksandhops and Ada Logic.
2025-08-29 11:45:02 +02:00
tobtoht
099af33242
Merge pull request #10036
...
f61294d epee: include math header for upcoming Boost 1.89 (Michael Cho)
2025-08-21 16:25:25 +00:00
Michael Cho
f61294dc6b
epee: include math header for upcoming Boost 1.89
...
When building on Ubuntu 22.04 with GCC 11.4.0 and Boost 1.89.0.beta1,
the build failed with:
```
error: ‘floor’ was not declared in this scope
41 | num_char = (int)floor((float)num_char / (float)radix);
| ^~~~~
```
Signed-off-by: Michael Cho <michael@michaelcho.dev >
2025-08-12 20:07:49 -04:00
Lee *!* Clagett
fb64bb346e
Skip ping connections in outgoing count
2025-08-09 10:48:53 -04:00
tobtoht
db91bde360
Merge pull request #9955
...
f567852 Add check for exception in tcp accept handler (Lee *!* Clagett)
2025-07-07 19:39:25 +00:00
tobtoht
c572e1ad00
Merge pull request #9908
...
9891fe8 epee: fix string_tools on Windows (0xFFFC0000)
2025-06-14 18:59:52 +00:00
Lee *!* Clagett
f567852867
Add check for exception in tcp accept handler
2025-06-12 17:46:42 -04:00
tobtoht
c2e3835223
Merge pull request #9910
...
d106e21b7 src: fix clangd warnings (0xFFFC0000)
2025-05-07 03:32:02 +00:00
0xFFFC0000
d106e21b74
src: fix clangd warnings
2025-05-01 05:27:35 +00:00
tobtoht
c5cb8e1b78
Merge pull request #9916
...
98b79485d msys2 build: include int headers (jeffro256)
2025-04-30 05:29:25 +00:00
jeffro256
98b79485df
msys2 build: include int headers
2025-04-29 00:57:37 -05:00
tobtoht
02fba21846
Merge pull request #9881
...
8af33c71c epee: syncobj: replace shims with Boost classes (jeffro256)
2025-04-23 16:31:56 +00:00
tobtoht
03de3ad5a6
Merge pull request #9879
...
18376ca57 epee: remove reg_exp_definer.h (jeffro256)
2025-04-23 16:27:03 +00:00
0xFFFC0000
9891fe8238
epee: fix string_tools on Windows
2025-04-22 13:22:02 +00:00
jeffro256
8af33c71cf
epee: syncobj: replace shims with Boost classes
...
a. `critical_section` is functionally identical to a `boost::recursive_mutex`
b. `critical_region_t` is functionally identical to a `boost::unique_lock`
c. remove some vestigial definitons `g_test_dbg_lock_sleep` as a variable
2025-04-01 11:09:26 -05:00
jeffro256
18376ca57d
epee: remove reg_exp_definer.h
...
Locking to initialize static block variables isn't necessary since C++11:
https://en.cppreference.com/w/cpp/language/storage_duration#Static_block_variables
2025-03-31 14:02:15 -05:00
jeffro256
332d92ffbe
epee: span::operator[] allow mut ref from const span
...
Changes the `operator[]` method so we can get mutable
references to elements even if the span is `const`.
The operator is now also `constexpr`.
This behavior matches `std::span`.
C++ standard reference: https://en.cppreference.com/w/cpp/container/span/operator_at
2025-03-22 16:53:17 -05:00
Lee *!* Clagett
50897a6871
Limit scope of TCP checks to incoming only
2025-02-24 21:55:35 -05:00
woodser
02e2a4f4cd
assign default port for http and https clients
2025-02-17 08:11:44 -05:00
tobtoht
94188d1a4a
Merge pull request #9428
...
92b671c56 contrib: smaller and more reasonable log size. (0xFFFC0000)
2025-02-17 10:23:19 +00:00
Lee *!* Clagett
ec74ff4a3d
Set response limits on http server connections
2025-02-13 23:55:17 -05:00
tobtoht
0e253622b2
Merge pull request #9459
...
7e766e13c Cleanup TCP throttling code (performance) + move connection checks (Lee *!* Clagett)
2025-01-22 22:39:57 +00:00
tobtoht
8c08863d60
Merge pull request #9663
...
978f1d7 Fix get_database_size on Windows (iamamyth)
2025-01-14 14:32:20 +00:00
Lee *!* Clagett
4344f97255
Fix build with boost ASIO 1.87. Support boost 1.66+
2025-01-06 18:05:25 -05:00
iamamyth
978f1d7d41
Fix get_database_size on Windows
...
Replace all calls to epee::file_io::get_file_size with
boost::filesystem::file_size in order to avoid lossy conversions from
paths to strings, which tend to break filename resolution. This commit
fixes a bug on Windows where the get_info RPC call reported a zero
database size because BlockchainLMBD::get_database_size returned zero.
2025-01-06 10:38:12 -08:00
luigi1111
b95aae5f2c
Merge pull request #9585
...
c744496 epee: Drop unused in-tree MD5 (Bastian Germann)
0bc5969 Replace in-tree MD5 with OpenSSL (Bastian Germann)
2024-12-23 11:00:30 -05:00
luigi1111
731854d39b
Merge pull request #9583
...
92de47f Fix memcpy in byte_slice constructor (Lee *!* Clagett)
2024-12-23 10:58:44 -05:00