fix don't try to enable pollout if it is already active (cgi)

Wed, 22 May 2024 20:44:00 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 22 May 2024 20:44:00 +0200
changeset 518
538a8a22f622
parent 517
be62c9604377
child 519
857e5b92828b

fix don't try to enable pollout if it is already active (cgi)

src/server/safs/cgi.c file | annotate | diff | comparison | revisions
--- a/src/server/safs/cgi.c	Sun May 19 16:53:37 2024 +0200
+++ b/src/server/safs/cgi.c	Wed May 22 20:44:00 2024 +0200
@@ -320,6 +320,9 @@
         }
         case CGI_IO_NEED_WRITE: {
             // writeev is only enabled, if needed
+            if(handler->poll_out) {
+                return 1;
+            }
             if(event_pollout(ev, handler->parser->sn->csd, handler->writeev)) {
                 handler->result = REQ_ABORTED;
             } else {

mercurial