<rainthree>
I'm seeing the same behaviour with SBCL (on Windows). The problem seems to be the client is sending the Keep-Alive header, which hunchentoot honours by keeping the worker-thread running after the request has been processed. It sits idle awaiting further input but unfortunately it seems that the socket never times out and the thread never gets terminated so I very rapidly hit a non-functioning server. This seems to be a
<rainthree>
Windows-specific problem because the same code works fine under (Ubuntu) Linux." any solution/idea?
<rainthree>
bots are doing semi-random requests such as /index.php?s=/index/\\think\\app/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=Hello and this creates threads which hunchentoot never ends
rkazak has quit [Ping timeout: 272 seconds]
Lord_of_Life has quit [Ping timeout: 252 seconds]
Lord_of_Life has joined #commonlisp
dieggsy has left #commonlisp [ERC 5.6.0.30.1 (IRC client for GNU Emacs 30.1)]
<rainthree>
the threads signal (error 'uri-parse-error :fmt-control fmt :fmt-arguments args) then remain hanging
<|3b|>
if your problem is actually "clients open connections and don't close them" as described there, the solution is probably either "don't let them do that" or "don't use a thread per connection server"
<|3b|>
ah, if you have errors and not just idle connections, you need to either not error or make sure the threads get cleaned up properly on error
<rainthree>
https://irclog.tymoon.eu/libera/%23commonlisp?around=1588424758#1588424758 "_death: just recently I had a bug like that, where I started threads for background processing and didn't have a catch-all, my server.. when things stopped working and I connected to swank I saw some 200 threads waiting in the debugger.."
<|3b|>
(though possibly the first 2 as well)
<rainthree>
https://irclog.tymoon.eu/libera/%23commonlisp?around=1422134905#1422134905 "on one hand I want almost all errors to be caught and neutralised by hunchentoot so no thread is blocked by error and consumes resources, but on the other hand I want safety net when I play with it interactively"
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 268 seconds]
rtypo has joined #commonlisp
rkazak has joined #commonlisp
Gleefre has quit [Ping timeout: 272 seconds]
zwr has quit [Ping timeout: 268 seconds]
zwr has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
rainthree has quit [Ping timeout: 265 seconds]
rainthree has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
admich1 has quit [Ping timeout: 276 seconds]
admich1 has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 272 seconds]
rainthree has quit [Quit: Leaving]
pve has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 252 seconds]
edgar-rft` has joined #commonlisp
King_julian has quit [Ping timeout: 268 seconds]
edgar-rft has quit [Ping timeout: 260 seconds]
King_julian has joined #commonlisp
lusciouslover has quit [Quit: \]
lusciouslover has joined #commonlisp
rkazak has joined #commonlisp
apac has joined #commonlisp
cage has joined #commonlisp
Everything has joined #commonlisp
rkazak has quit [Ping timeout: 268 seconds]
apac has quit [Ping timeout: 244 seconds]
by9042 has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 268 seconds]
leeb has joined #commonlisp
leeb_ has quit [Ping timeout: 272 seconds]
rkazak has joined #commonlisp
Gleefre has joined #commonlisp
CrashTestDummy has joined #commonlisp
rkazak has quit [Ping timeout: 245 seconds]
admich1 has quit [Ping timeout: 252 seconds]
admich1 has joined #commonlisp
CrashTestDummy has quit [Read error: Connection reset by peer]
calx-87 has quit [Ping timeout: 248 seconds]
rgherdt has joined #commonlisp
donlcn has joined #commonlisp
lcn_2 has joined #commonlisp
chomwitt has joined #commonlisp
by9042 has quit [Quit: Konversation terminated!]
brokkoli_originl has quit [Ping timeout: 276 seconds]
brokkoli_origin has joined #commonlisp
tjbw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbw has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 272 seconds]
lcn__ has joined #commonlisp
rkazak has joined #commonlisp
donlcn has quit [Ping timeout: 248 seconds]
lcn_2 has quit [Ping timeout: 252 seconds]
donlcn has joined #commonlisp
by9042 has joined #commonlisp
admich1 has quit [Read error: Connection reset by peer]
admich1 has joined #commonlisp
lcn_2 has joined #commonlisp
lcn__ has quit [Ping timeout: 276 seconds]
donlcn has quit [Ping timeout: 276 seconds]
cage has quit [Remote host closed the connection]
donlcn has joined #commonlisp
McParen has joined #commonlisp
apac has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
ebrasca has joined #commonlisp
Guest47_ has joined #commonlisp
scymtym has quit [Ping timeout: 252 seconds]
rgherdt_ has joined #commonlisp
rgherdt has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
calx-87 has joined #commonlisp
scymtym has joined #commonlisp
kevingal has joined #commonlisp
rkazak has quit [Ping timeout: 268 seconds]
bpanthi977 has quit [Ping timeout: 276 seconds]
rgherdt__ has joined #commonlisp
rgherdt_ has quit [Remote host closed the connection]
lcn_2 has quit [Read error: Connection reset by peer]
donlcn has joined #commonlisp
admich1 has quit [Read error: Connection reset by peer]
admich1 has joined #commonlisp
<g-gundam>
I took what I learned from vindarel's CL webdev tutorial and made a little starter kit for CL webapps. A live instance of a site made with it will temporarily be here if you want to see: http://beastie.sdf.org:4200/about