jsonrpc
jsonrpc copied to clipboard
Is there a way to not consume 2 threads per-client?
I noticed, that each connected client consumes 2 threads. One thread is created by Hunchentoot and other by JSONRPC:
#<SB-THREAD:THREAD "jsonrpc/transport/websocket processing" RUNNING
{1012704EF3}>
#<SB-THREAD:THREAD "hunchentoot-worker-127.0.0.1:54832" RUNNING {10124993B3}>
it will relatively easy to do DoS attack on such server by just creating a few thousands connections.
Is there a way to not create new threads or use some thread pool? Or at least to respond to client call and close the connection?