You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.
I'm a bit biased whether this is fcl's fastcgi fault or brook, but I'll report here first to ensure (and you can forward to fpc mantis then). Basically I want to test the reliability of the application. So I create a simple fastcgi application that only outputs a single hello world message (just make an action with get method containing write('hello, world');). With httest, I then create 5000 (sometimes it passes, and fails at higher number like 8000) concurrent connection to request the server at once and here's what I got from debugger:
Exception class "HTTPError" at $080CDCA7 with message "Failed to write data to socket. Error: -1"
#0 fpc_raiseexception at :0 #1 CUSTFCGI$$TFCGIRESPONSE$$$WRITE_FCGIRECORD$PFCGI_HEADER at :0 #2 CUSTFCGI$$TFCGIRESPONSE_$$$DOSENDCONTENT at :0 #3 HTTPDEFS$$TRESPONSE_$$$SENDCONTENT at :0 #4 .Ld17 at :0 #5 CUSTWEB$$TWEBHANDLER_$$$_DOHANDLEREQUEST$TREQUEST$TRESPONSE at :0 #6 ?? at :0 #7 TBROOKAPPLICATION__RUN() at /media/Sources/lazarus-fpc/git/brookframework/brokers/brookfclfcgibroker.pas:108 #8 main at test.lpr:9
The text was updated successfully, but these errors were encountered:
I'm a bit biased whether this is fcl's fastcgi fault or brook, but I'll report here first to ensure (and you can forward to fpc mantis then). Basically I want to test the reliability of the application. So I create a simple fastcgi application that only outputs a single hello world message (just make an action with get method containing write('hello, world');). With httest, I then create 5000 (sometimes it passes, and fails at higher number like 8000) concurrent connection to request the server at once and here's what I got from debugger:
Exception class "HTTPError" at $080CDCA7 with message "Failed to write data to socket. Error: -1"$TFCGIRESPONSE_$ $$DOSENDCONTENT at :0$TRESPONSE_$ $$SENDCONTENT at :0$TWEBHANDLER_$ $$_DOHANDLEREQUEST$TREQUEST$TRESPONSE at :0
#0 fpc_raiseexception at :0
#1 CUSTFCGI$$TFCGIRESPONSE$$$WRITE_FCGIRECORD$PFCGI_HEADER at :0
#2 CUSTFCGI$
#3 HTTPDEFS$
#4 .Ld17 at :0
#5 CUSTWEB$
#6 ?? at :0
#7 TBROOKAPPLICATION__RUN() at /media/Sources/lazarus-fpc/git/brookframework/brokers/brookfclfcgibroker.pas:108
#8 main at test.lpr:9
The text was updated successfully, but these errors were encountered: