Make many more http options domain-specific

timetout, max_upload, max_download and max_websocket_message may now be
configured on a domain-by-domain basis. This uses the same system that
we use for the block/allow-list from before:

Example:

    [[http.rules]]
        host = "*"
        action = "allow"
	max_upload = 4194304
	max_download = 16777216
	timeout = 30000
This commit is contained in:
SquidDev committed 2020-05-15 23:04:04 +01:00
1 parent 4f8217d1ab
commit 7af63d052d
22 files changed
+372 -132

No files matched your search

@@ -85,7 +85,7 @@ public class ComputerTestDelegate
@BeforeEach
public void before() throws IOException
{
ComputerCraft.logPeripheralErrors = true;
ComputerCraft.logComputerErrors = true;
if( REPORT_PATH.delete() ) ComputerCraft.log.info( "Deleted previous coverage report." );
@@ -42,7 +42,7 @@ public class ComputerBootstrap
public static void run( IWritableMount mount, Consumer<Computer> setup, int maxTicks )
{
ComputerCraft.logPeripheralErrors = true;
ComputerCraft.logComputerErrors = true;
ComputerCraft.maxMainComputerTime = ComputerCraft.maxMainGlobalTime = Integer.MAX_VALUE;
Terminal term = new Terminal( ComputerCraft.terminalWidth_computer, ComputerCraft.terminalHeight_computer );