Package burp.mcp.server
Class BoundedAsyncRunner
java.lang.Object
burp.mcp.server.BoundedAsyncRunner
- All Implemented Interfaces:
fi.iki.elonen.NanoHTTPD.AsyncRunner
Bounded AsyncRunner honoring the
thread_pool_size and
max_queue_size preferences.
The default NanoHTTPD runner spawns an unbounded thread per connection.
This runner caps both threads and queued connections; when saturated it
closes the excess connection instead of growing without bound.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BoundedAsyncRunner
public BoundedAsyncRunner(int threads, int queueSize)
-
-
Method Details
-
exec
public void exec(fi.iki.elonen.NanoHTTPD.ClientHandler clientHandler) - Specified by:
execin interfacefi.iki.elonen.NanoHTTPD.AsyncRunner
-
closed
public void closed(fi.iki.elonen.NanoHTTPD.ClientHandler clientHandler) - Specified by:
closedin interfacefi.iki.elonen.NanoHTTPD.AsyncRunner
-
closeAll
public void closeAll()- Specified by:
closeAllin interfacefi.iki.elonen.NanoHTTPD.AsyncRunner
-
getRejectedCount
public long getRejectedCount()Connections dropped because pool + queue were full. -
shutdown
public void shutdown()
-