kannibalox
d6dcbc4a69
Add size limit to XML-RPC documents, defaulting to max SCGI size
2024-11-25 18:44:28 +09:00
kannibalox
cadfcb50d2
Print iterator for TYPE_DICT_KEY, not object
2024-11-25 18:44:28 +09:00
kannibalox
71a39cd8a0
Keep as_*() outside of loops
2024-11-25 18:44:28 +09:00
kannibalox
0658486966
Change base64 decoder name, and add util for removing newlines
2024-11-25 18:44:28 +09:00
kannibalox
687fbbb83d
Formatting
2024-11-25 18:44:28 +09:00
kannibalox
e355eb561f
Clean up borrowed base64 code to match repo standards
2024-11-25 18:44:28 +09:00
kannibalox
902de0b258
Add test for empty int text
2024-11-25 18:44:28 +09:00
kannibalox
01e5df4167
Remove title printing from test
2024-11-25 18:44:28 +09:00
kannibalox
8d85ce5857
Add test case for empty integer
2024-11-25 18:44:28 +09:00
kannibalox
f9c9fa2e3b
Move int element converter to helper function
...
Also fix strncmp checks
2024-11-25 18:44:28 +09:00
kannibalox
337897784d
Change rpc namespace to include static consts
2024-11-25 18:44:28 +09:00
kannibalox
782b1e4ea8
Skip converting value_element_type to std::string
2024-11-25 18:44:28 +09:00
kannibalox
3cfc213053
Fix missing header
2024-11-25 18:44:28 +09:00
kannibalox
b789d83b70
Fix system.listMethods inclusion check
2024-11-25 18:44:28 +09:00
kannibalox
67babb65d6
Convert element_access to use initializer lists
...
Also remove uses element_access for single child accesses
2024-11-25 18:44:28 +09:00
kannibalox
e0d5c95821
Use correct terminology in comment
2024-11-25 18:44:28 +09:00
kannibalox
7f4c5df5ee
Use single namespace statement
2024-11-25 18:44:28 +09:00
kannibalox
dd45684584
Move vendored tinyxml2 files to rpc namespace and directory
2024-11-25 18:44:28 +09:00
kannibalox
fb8632e990
Change lingering camelCase to snake_case
2024-11-25 18:44:28 +09:00
kannibalox
b043b7b39e
Simplify iterator names
2024-11-25 18:44:28 +09:00
kannibalox
168093d256
Remove extra return
2024-11-25 18:44:28 +09:00
kannibalox
0c2f0b7715
Add test case for invalid floats
2024-11-25 18:44:28 +09:00
kannibalox
4a9d9952e1
Be explicit about the desired result
2024-11-25 18:44:28 +09:00
kannibalox
fd1d5dbdb2
Add test case for bad boolean value
2024-11-25 18:44:28 +09:00
kannibalox
dd0c62c7f7
Uncomment after testing
2024-11-25 18:44:28 +09:00
kannibalox
3a8e462bd3
Throw error if attempting to use both xmlrpc-c and tinyxml2
2024-11-25 18:44:28 +09:00
kannibalox
b360a734f1
Use std::strtoll instead of std::stol
2024-11-25 18:44:28 +09:00
kannibalox
c18df7a366
Use std::strncmp for string comparison
2024-11-25 18:44:28 +09:00
kannibalox
a269f808e1
Fix swapped variable names
2024-11-25 18:44:28 +09:00
kannibalox
4444df2e97
Change internal error to type error
2024-11-25 18:44:28 +09:00
kannibalox
5a194ab037
Remove stack from exception message
2024-11-25 18:44:28 +09:00
kannibalox
1b43f8b591
Use snake case for variable names
...
Also use `||` instead of `or`, and throw an error if an unknown boolean
string is received
2024-11-25 18:44:28 +09:00
kannibalox
d6427203a4
Refactor to only use a position variable
2024-11-25 18:44:28 +09:00
kannibalox
87c6422052
Allow using vendored tinyxml2 for XMLRPC
...
By default, builds will still not have XMLRPC enabled at all and the
configure flag `--with-xmlrpc-tinyxml2` must be specified. If both
xmlrpc-c and tinyxml2 are specified, xmlrpc-c takes precedence.
Basic benchmarks indicate tinyxml2 is 2x faster for small
requests/responses, and that only increases as response sizes get
larger.
2024-11-25 18:44:28 +09:00
rakshasa
6ab265ecd4
Fixed merge errors.
2024-11-14 00:33:03 +09:00
rakshasa
203c66a287
Merge branch 'kannibalox-feature/clang-format'
2024-11-13 10:53:28 +00:00
Jari Sundell
c9fe2facfa
Merge branch 'master' into feature/clang-format
2024-11-13 19:51:04 +09:00
kannibalox
5abcf52e55
Remove unused flag_delete_key
2024-11-13 19:22:34 +09:00
kannibalox
f2f84dd97a
Remove destructor definition entirely
2024-11-13 19:22:34 +09:00
kannibalox
34de2b4ac9
Convert CommandMap to use std::string instead of char*
...
This allows it to own its keys and clean them up automatically on
destruction.
2024-11-13 19:22:34 +09:00
rakshasa
ef937863fd
Removed unused code.
2024-11-13 18:59:57 +09:00
kannibalox
00fa4127e1
Respect existing line limits
2024-11-11 16:00:28 -05:00
kannibalox
1b0cb722e6
Remove non-naming checks
2024-11-10 09:18:59 -05:00
kannibalox
af23ca8032
Convert some representative files
2024-11-10 09:17:12 -05:00
kannibalox
c85f9d6318
Add clang tidy/format
2024-11-10 09:08:33 -05:00
Josh Ellithorpe
ee120730cc
Update README.md to spell Ethereum correctly
2024-10-29 22:44:09 +09:00
stickz
b284be6a66
Resolve scgi software crash
...
This commit resolves a scgi software crash when the scgi socket is closed before the message can be sent. It instructs `::send()` not to send a SIGPIPE termination signal. Instead the value -1 is returned and handled bellow. The SCgiTask is closed and a new one is sent to complete the task.
```
Thread 3 "rtorrent scgi" received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x7fffe635c6c0 (LWP 2443872)]
0x00007ffff7929a84 in send () from /lib/x86_64-linux-gnu/libc.so.6
```
2024-10-29 22:42:33 +09:00
kannibalox
6e976616a0
Simplify updating queue entries
...
The erase/insert pattern can be replaced by a single method that
updates an existing entry's timer, or inserting if it doesn't exist.
This has much less impact than the libtorrent change it's based on,
but might as well be consistent.
2024-10-20 18:33:33 +09:00
Adam Sampson
38b39bdafc
Add ax_require_defined.m4 to scripts.
...
This is required now by ax_with_curses.m4, but wasn't added when the
script was updated.
2024-10-07 23:52:20 +09:00
Adam Sampson
48718bdac8
Remove unnecessary +x mode from some m4 files.
2024-10-07 23:52:20 +09:00