]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4188: Bumping intercepted SSL connections does not work on Solaris
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 27 Oct 2015 22:45:11 +0000 (15:45 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 27 Oct 2015 22:45:11 +0000 (15:45 -0700)
src/comm/ModDevPoll.cc

index d7949c770305b01daf9c1a7dd4d1b4b1110606b7..d6bd9eea3c06c3dda27be9b3f37a2ec2c4f9dfb9 100644 (file)
@@ -241,6 +241,9 @@ Comm::SetSelect(int fd, unsigned int type, PF * handler, void *client_data, time
 
     if ( type & COMM_SELECT_READ ) {
         if ( handler != NULL ) {
+            // Hack to keep the events flowing if there is data immediately ready
+            if (F->flags.read_pending)
+                state_new |= POLLOUT;
             /* we want to POLLIN */
             state_new |= POLLIN;
         } else {