mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-03 00:36:37 +00:00
Increase network i/o capacity (#5464)
The change increases the default network I/O worker thread pool size from 2 to 6. This will improve stability, as worker thread saturation correlates to desyncs, particularly on high-traffic peers, such as hubs.
This commit is contained in:
@@ -259,8 +259,8 @@ public:
|
||||
if ((cores == 1) || ((config.NODE_SIZE == 0) && (cores == 2)))
|
||||
return 1;
|
||||
|
||||
// Otherwise, prefer two threads.
|
||||
return 2;
|
||||
// Otherwise, prefer six threads.
|
||||
return 6;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user