Re: [modwsgi] Daemon mode behavior with slow requests

2018-03-09 Thread Cristiano Coelho
Yes I was referring to validation on the WSGI side, file size was just an example. I know it's silly though since most validation should start also on the client side. El domingo, 4 de marzo de 2018, 19:52:11 (UTC-3), Graham Dumpleton escribió: > > > On 5 Mar 2018, at 2:17 am, Cristiano Coelho

Re: [modwsgi] Daemon mode behavior with slow requests

2018-03-04 Thread Graham Dumpleton
> On 5 Mar 2018, at 2:17 am, Cristiano Coelho wrote: > > Hi Graham, thanks for the response, that indeed looks like a tricky thing to > implement. > > There's another scenario that might also benefit from something like this, > for example, when uploading large files (I know this is usually

Re: [modwsgi] Daemon mode behavior with slow requests

2018-03-04 Thread Cristiano Coelho
Hi Graham, thanks for the response, that indeed looks like a tricky thing to implement. There's another scenario that might also benefit from something like this, for example, when uploading large files (I know this is usually not the best thing to do, and rather it should be uploaded directly

Re: [modwsgi] Daemon mode behavior with slow requests

2018-03-03 Thread Graham Dumpleton
I got quite a lot done on mod_wsgi during my holidays, but that didn't include a simple answer to this. The idea I initially had couldn't work. The only way I have been able to work out that might work is when have request content and it is over a certain size, is to spawn a second thread for th

Re: [modwsgi] Daemon mode behavior with slow requests

2018-03-02 Thread Cristiano Coelho
Hi Graham, got any updates related to this? Have been trying to reach out AWS to update their mod_wsgi versions but seems like an useless effort. El domingo, 10 de diciembre de 2017, 20:23:01 (UTC-3), Graham Dumpleton escribió: > > Anyway, am looking into something about how daemon mode works

Re: [modwsgi] Daemon mode behavior with slow requests

2017-12-10 Thread Graham Dumpleton
Anyway, am looking into something about how daemon mode works to see if I can short circuit things to possibly partly avoid the problem. Will update later. Graham > On 11 Dec 2017, at 10:21 am, Cristiano Coelho > wrote: > > Sorry, I think it was a typo when I tried the commands, my tests wer

Re: [modwsgi] Daemon mode behavior with slow requests

2017-12-10 Thread Cristiano Coelho
Sorry, I think it was a typo when I tried the commands, my tests were with just HTTP after all, and I see the same issue, if I use HTTPS the slowloris script just stops instantly. The logs from the main post were with HTTPS indeed but that's because the server uses HTTPS. The local test was don

Re: [modwsgi] Daemon mode behavior with slow requests

2017-12-10 Thread Graham Dumpleton
I will try and provide a better explanation of why solving it is hard later, but if I change: slowhttptest -c 6 -B -i 10 -r 200 -s 8192 -t POST -u "https://localhost:8080/test"; -x 10 -p 3 to: slowhttptest -c 6 -B -i 10 -r 200 -s 8192 -t POST -u "http://localhost:8080/test"; -x 10 -p