Jari Sundell
ea2d22cb87
Removed unused add/remove error-event code.
2026-07-07 03:05:20 +09:00
Jari Sundell
d595ebf7d8
Renamed scgi socket manager category to rpc.
2026-06-17 03:43:26 +09:00
Jari Sundell
50a609ade9
Fixed cacheline size check.
2026-06-01 20:11:02 +09:00
rakshasa
0989b2218d
Various cleanup and fixes to SocketManager categories.
2026-05-27 12:38:52 +02:00
Trim21
3d7e6cb077
Added per-category allocation limits to SocketManager by @trim21
2026-05-27 18:16:02 +09:00
Jari Sundell
64881317c6
Fix RPC/SCGI security and crash bugs by @sirus20x6
2026-05-26 17:27:10 +09:00
Jari Sundell
71ac256cb5
Moved socket counter to runtime::SocketManager.
2026-05-10 02:11:35 +09:00
zqmfb
2711e4c044
Use libtorrent's fd_set_nonblock helper
2026-03-27 17:48:13 +01:00
zqmfb
63ea08bde6
Add support for SCGI systemd socket activation
...
Add a new command, `network.scgi.open_systemd`, that binds to a file
descriptor passed in via systemd socket activation.
2026-03-27 17:48:13 +01:00
Jari Sundell
70e6964823
Fixed various SCGI issues.
2026-03-10 23:25:28 +09:00
Jari Sundell
87666199b3
Added SocketManager to handle reuse of uninterested fd's by the kernel.
2026-01-29 04:00:31 +09:00
Jari Sundell
2fa7568165
Remove obsolete SocketFd class.
2026-01-26 19:13:03 +09:00
Jari Sundell
5dbb0020dc
Replace ThreadWorker with scgi::ThreadScgi.
2025-12-18 07:43:43 +09:00
Jari Sundell
8f644e65dd
Use separate thread for saving session data.
2025-12-18 06:42:44 +09:00
Jari Sundell
30cec98799
Moved Poll to net namespace.
2025-11-20 03:05:16 +09:00
Jari Sundell
658e9f7578
Use simplified fd_accept().
2025-09-18 17:40:56 +09:00
Jari Sundell
e7a80c7b18
Remove deprecated rak::socket_address.
2025-09-17 21:44:54 +09:00
Jari Sundell
e8c1f3ed2c
Update to use new this_thread::Poll().
2025-05-31 22:22:31 +09:00
Jari Sundell
dd221ac66a
Replaced Thread::next_timeout_usec().
2025-04-16 02:39:40 +09:00
Jari Sundell
2ab7460cbc
Fix SCGI threading and added missing header.
2025-04-01 01:26:07 +09:00
Jari Sundell
f33fc331ce
Thread-safe improvements to dht/tracker code and reorganized thread objects.
2025-03-13 22:15:12 +09:00
kannibalox
9f48226663
Add JSON-RPC capability
...
Inline nlohmann/json for the JSON parsing itself, and handle requests
with the same SCGI interface as XML-RPC.
Based off the work in https://github.com/jesec/rtorrent
2025-01-20 12:31:04 +01:00
stickz
e7fc891f11
cleanup: Changes for c++17
...
This cleanup adjusts the rTorrent code to comply with c++17 standard. It also simplifies various parts of the code.
2025-01-18 20:15:20 +01:00
kannibalox
cd9948a4a8
Remove/replace functional_fun.h functions
2024-12-22 19:17:36 +09:00
rakshasa
7689059dbc
Cleaned up thread code.
2013-04-03 21:16:11 +09:00
rakshasa
d1ff1fe77c
Solaris compatibility fixes.
2012-03-26 23:18:10 +09:00
rakshasa
4d313e6353
Updated copyright information.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1301 e378c898-3ddf-0310-93e7-cc216c733640
2011-10-09 06:30:14 +00:00
rakshasa
f5d4924b22
* Casting printf input to match the format type.
...
* Properly clear the queued events during closing of a socket by checking for the file descriptor, not the ptr.
* SCGI m_task queue could overflow since the check was not working.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1246 e378c898-3ddf-0310-93e7-cc216c733640
2011-07-19 13:11:28 +00:00
rakshasa
b8d319a2fc
* Fixed a race condition where the releasing of the global lock before calling polling would cause problems. Now a thread that acquires the global lock and wants to remove or change fd's from the main thread.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1182 e378c898-3ddf-0310-93e7-cc216c733640
2010-10-22 11:31:11 +00:00
rakshasa
588f9e80c7
* Threaded XMLRPC support. Sponsored by Xirvik.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1123 e378c898-3ddf-0310-93e7-cc216c733640
2010-01-25 13:14:09 +00:00
rakshasa
b635f8c852
* More work on threading.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1112 e378c898-3ddf-0310-93e7-cc216c733640
2009-12-12 21:30:52 +00:00
rakshasa
667c4c3562
* Created ThreadBase holding poll manager, etc, and added a this_thread global object.
...
* Cleaned up main initialization, SCGI and polling code.
* Fixed a bug that would cause reading of a piece to hang if the incoming data contains only data up to the file boundary, but not the next file's data. The bug did not trigger if the file boundary and piece boundaries were the same.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1101 e378c898-3ddf-0310-93e7-cc216c733640
2009-11-12 09:28:35 +00:00
rakshasa
535db16850
* Bumping copyright year to 2007.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@938 e378c898-3ddf-0310-93e7-cc216c733640
2007-07-19 21:29:34 +00:00
rakshasa
13dc0c942a
* Allow binding of the SCGI socket to a specific address, and added
...
"scgi_dont_route" variable.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@908 e378c898-3ddf-0310-93e7-cc216c733640
2007-05-23 21:47:11 +00:00
rakshasa
bebce18368
* Added "http_ca{path/cert}" options. Patch by Johan Gunnarsson,
...
public domain.
* Minor bugfixes to SCgi.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@907 e378c898-3ddf-0310-93e7-cc216c733640
2007-05-23 14:03:02 +00:00
rakshasa
2db205a89d
* Added support for named pipes and proper parseing of arguments for
...
SCGI.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@906 e378c898-3ddf-0310-93e7-cc216c733640
2007-05-21 01:51:52 +00:00
rakshasa
5f274b2619
* Added support for SCGI rpc calls.
...
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@905 e378c898-3ddf-0310-93e7-cc216c733640
2007-05-20 17:30:00 +00:00