Explorar o código

* Don't burst non-connect_burstable queues when in connect burst mode

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
4b03984342
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mod/server.mod/server.c

+ 1 - 1
src/mod/server.mod/server.c

@@ -287,7 +287,7 @@ void deq_msg()
   for(size_t nq = 0; nq < (sizeof(qdsc) / sizeof(qdsc[0])) - 1; ++nq) {
     while (qdsc[nq].q->head &&
         // If burstable queue and can burst, or not a burstable queue and not connect bursting
-        ((qdsc[nq].burst && (burst < msgburst)) || (!qdsc[nq].burst && !connect_bursting)) &&
+        ((qdsc[nq].burst && (burst < msgburst && (!connect_bursting || (connect_bursting && qdsc[nq].connect_burst)))) || (!qdsc[nq].burst && !connect_bursting)) &&
         ((last_time.sec - now) < MAXPENALTY)) {
 #ifdef not_implemented
       if (deq_kick(qdsc[nq].idx)) {