jsonrpc icon indicating copy to clipboard operation
jsonrpc copied to clipboard

Is there a way to not consume 2 threads per-client?

Open svetlyak40wt opened this issue 2 years ago • 0 comments

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?

svetlyak40wt avatar Sep 26 '22 21:09 svetlyak40wt